Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Mar : Re: Can't close the Server connection.
| Subject: | Re: Can't close the Server connection. |
| Posted by: | "Francois Piette [ICS & Midware]" (francois.piet..@overbyte.be) |
| Date: | Thu, 2 Mar 2006 09:03:07 |
> I have an application using the control ServerSocket, the clients must be
> permanently connected , but when trying to close the server, the client
> disconnect and connecting inmediately. How can i fix this?
I don't know which component you use. If it is TWSocketServer (from ICS,
download at http://www.overbyte.be), then it is enough to close the
listening socket. This doesn't disconnect already connected clients but no
other client will be able to connected. If you need it, you may disconnect
each client one by one using Client[] property and calling Close, or close
all clients at once using DisconnectAll().
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
none