It's a basic socket program where server continously listen for a message and when it receives it will response with ok. Whereas client can only send a single message after that it will close the connection. The purpose of this program is to demonstrate how to create socket, bind address, listen for new connection and accept it.
While running the server pass the port number as argument
./server 2058While running client pass the host and port number where server is listening
./client 127.0.0.1 2058