How can I use InetD to enable my console application to be TCP/IP network enabled?
This is a very simple task. All you must do is use our socket instead of STDIN and STDOUT. So, you can use the following code snippet to get the socket handle and allow your program to read and write to the socket just as if it were in a regular console. char *pSock; int hOutput = 0, hInput = 0; if ( (pSock = getenv(“PRAGMASYS_INETD_SOCK”)) !