Question

Write two programs, a server and a client, that communicate via a socket.

The server must run an infinite loop that: (1.0%)

Note that the server does not fork a child to deal with the connection.

The client must: (1.0%)

You can use mysockets.h and mysockets.c to do most of the detailed socket manipulations (but you must not use the ReadData and WriteData functions, use recv and send).

Answer