Board index » delphi » TServerSocket question

TServerSocket question


2004-07-14 11:01:52 PM
delphi266
Hello
When client connects it generates an ServerClientConnect event. When the
same client make another connection without disconnecting the first one it
generates the event again. How can I do to disconnect the first instance and
just accept the new one?
Thanks for any help.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12/7/2004
 
 

Re:TServerSocket question

"Julio Cesar" <XXXX@XXXXX.COM>writes
Quote
When client connects it generates an ServerClientConnect
event. When the same client make another connection without
disconnecting the first one it generates the event again. How
can I do to disconnect the first instance and just accept the
new one?
You will have to manully loop through the server's Connections[] list
looking for the original connection and then Close() it if found.
Gambit