Linux has always been a highly appreciated operating system, especially for the server-side. So what better start for development on Linux? Creating a small TCP/IP server.
Creating Linux TCP/IP servers
Getting ready
In this recipe, we're going to create a TCP/IP server that listens on a port for incoming requests from a TCP client. These client requests can then be processed at the server, and a response can be sent back to the client.
The server we are going to build will listen for client commands. It will always return the reverse string of the command passed, unless you pass the quit command; in that case, it will disconnect the client.
This recipe is very simple, but it will be of great help in taking the first steps...