[fpc-pascal]linux Socket programming question with inetd as launcher

Stefan Becker becker at lufa-sp.vdlufa.de
Thu Aug 15 03:06:55 CEST 2002


Hi everybody,

I am trying to write a socket (client/server) communications.  I've
decided to write the server simply by using the inetd.conf
as a launcher and reading and writing to STDIN/OUT.

500     stream  tcp     nowait  root    /usr/sbin/tcpd
/home/becker/pascal/MyServer

This really works!

If I telnet to the socket I can connect and communicate to my application!

like: > telnet localhost 500

Now : If I write my OWN programm with the socket unit and open a channel to
the service running on say port 500 what port do I listen to and open to
receive the answering connection?  Or how do I tell the inetd service im
connecting
to where I am listening?

this really has me stummped.......


I hope some one will be able to help me out!


thanks,

Stefan

email: stefan at yukonho.de










More information about the fpc-pascal mailing list