DOS network programming is not directly supported by TURBO C. If someone assigned this task to you then that person must have some linkable files to supply TCP/IP support.
This stuff is VERY old. TURBO C should be banned from classrooms. IMO.
There were some network support libraries here:
http://alumnus.caltech.edu/~dank/trumpet/