linux socket

help classmate do homework ........