Re: [twsocket] Refusing client connection

2008-05-10 Thread Francois PIETTE
 I built a server program, and a few clients. Each client has a specific
 scope and uses some of the server features. On of the client software
 has the ability to restart the server.

 That's where the problem begins. While the server is shutting down, I
 must broadcast a shutdown to all connected client softwares so they
 can close gracefully. But, during this process, I don't want any new
 connection to be made.

How would be the best way to deal with this?

Very simple: close the listening socket. This will prohibe any new 
connection but will in no way break existing connections.

--
[EMAIL PROTECTED]
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] Refusing client connection

2008-05-09 Thread Clément Doss
Hi,

I built a server program, and a few clients. Each client has a specific 
scope and uses some of the server features. On of the client software 
has the ability to restart the server.

That's where the problem begins. While the server is shutting down, I 
must broadcast a shutdown to all connected client softwares so they 
can close gracefully. But, during this process, I don't want any new 
connection to be made.

How would be the best way to deal with this?

TIA,
Clément

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be