Test some simple implementations of TCP client/server in C capable handle multiples clients.
-
simple_server.c: This servers accepts only one client at a time. This is the base server to test creating, binding, ... sockets in C.
-
select_server.c: This server uses the
selectfunction to handle multiples clients. This is the base server to test theselectfunction in C.
To build the server, run the following commands:
$ make build serverTo run the server, run the following commands:
$ ./bin/serverTo build the client, run the following commands:
$ make build clientTo run the client, run the following commands:
$ ./bin/client