Hi Lukas, Hi All,
I'm using Synapse quite a while, I've written an Email-Archiving Gateway that
uses SOAP to connect to the mailserver.
Now here's my question: The gateway consits of one 'Master' task (program) and
multiple worker tasks (programs). Each of them has a build-in Webserver based
on the http-Demo in Synapse.
Currently the user has to configure different ports for each webserver. I now
want to change this, that the Master proxies all the workers webservers, so the
user doesn't need to know or configure these ports.
Now my problem: How can I open a dynamic port for listening? - using
bind('0.0.0.0',0) doesn't do it. Or is there a way to check wether a port is in
use ?
I have to support both Windows and Linux, using Lazarus/FreePascal.
Thanks a lot
Rainer
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public