Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Jul : Stop and start a Binding (TIdSocketHandle)
| Subject: | Stop and start a Binding (TIdSocketHandle) |
| Posted by: | "Melih OZAL" (melihoz..@hotmail.com) |
| Date: | Wed, 2 Jul 2008 22:44:12 |
I have two binding on a TCPServer and i want to stop and start any of them
but it seems to be imposible.
To stop a binding i use TCPServer.Bindings[1].Closesocket; and it works.
To start a binding
TCPServer.Bindings[1].AllocateSocket;
TCPServer.Bindings[1].Bind;
TCPServer.Bindings[1].Listen;
But this is not working. I can connect to the binding but OnConnect does not
fire.
Is there something that i miss. I am really tired and need help.
Thanks for any help...
Melih