Creating Linux TCP/IP servers
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.
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 in development for Linux.
INDY is a fantastic library, appreciated and widely used by Delphi developers. INDY offers client and server components for using internet protocols, such asTCP, UDP, Echo, FTP, HTTP, Telnet, and many others. The good news is that it is also available...