> 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.
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
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