Re: [fpc-pascal] Standby socket servers?

2007-06-03 Thread Marco van de Voort
Francisco Reyes wrote: Do you know of any place, or sample code, that I can see how non blocking sockets work? Francisco, The bible on this type of programming is Richard Steven's _Unix Network Programming_. I have both the old version of the book, as well as Volume 1 of the new

Re: [fpc-pascal] Standby socket servers?

2007-06-03 Thread Francisco Reyes
Marco van de Voort writes: Aren't there three versions already? The original had the later Advanced programming volume as a mere chapter. In the second they are splitted, and the third is fairly recent I don't think it will make much difference which version I got.. since the examples are in

Re: [fpc-pascal] Standby socket servers?

2007-06-02 Thread ik
Hi, You can create a daemon is several ways, but here are two of them: 1. Create non blocking sockets for the server, and on every new communication open a new thread that will use that connection. 2. Create a non blocking sockets for the server, and on every new communication open a new process

Re: [fpc-pascal] Standby socket servers?

2007-06-02 Thread Francisco Reyes
ik writes: You can create a daemon is several ways, but here are two of them: 1. Create non blocking sockets for the server, and on every new communication open a new thread that will use that connection. Thread or fork? 2. Create a non blocking sockets for the server, and on every new

Re: [fpc-pascal] Standby socket servers?

2007-06-02 Thread Alan Krause
Francisco Reyes wrote: Do you know of any place, or sample code, that I can see how non blocking sockets work? Francisco, The bible on this type of programming is Richard Steven's _Unix Network Programming_. I have both the old version of the book, as well as Volume 1 of the new and

Re: [fpc-pascal] Standby socket servers?

2007-06-02 Thread Francisco Reyes
Alan Krause writes: The bible on this type of programming is Richard Steven's _Unix Network Programming_. I have both the old version of the book, as well as Volume 1 of the new and revised version. Thanks. Got it on Safari. UNIX Network Programming Volume 1, Third Edition: The Sockets

[fpc-pascal] Standby socket servers?

2007-06-01 Thread Francisco Reyes
After reading the socket samples at http://www.bastisoft.de/pascal/pasinet.html I am starting to get the basics of socket programming. The one thing I don't see in that page is how one would have standby servers. In other words I would like my server program to have some N number of