| View previous topic :: View next topic |
| Author |
Message |
Suodatin Pussi Guest
|
Posted: Tue Apr 13, 2004 8:03 pm Post subject: how to drop client connections on server socket? |
|
|
Hi, Besides the SendStreamThenDrop method, is there another way to drop
individual clients on a server socket?
Thanks
Suo
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Tue Apr 13, 2004 9:06 pm Post subject: Re: how to drop client connections on server socket? |
|
|
"Suodatin Pussi" <Suodatin_Pussi (AT) kokonaisuutena (DOT) hotmail.com> wrote in
message news:407c4730$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Hi, Besides the SendStreamThenDrop method, is there
another way to drop individual clients on a server socket?
|
Use the server's ActiveConnections[] property. Find the client that you are
interested in and simply Close() it.
Gambit
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Tue Apr 13, 2004 9:45 pm Post subject: Re: how to drop client connections on server socket? |
|
|
"Suodatin Pussi" <Suodatin_Pussi (AT) kokonaisuutena (DOT) hotmail.com> wrote in
message news:407c5f76$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Will try that again. For some reason it just kept closing
all the connections (the socket) not just drop a single
connection.
|
You probably weren't closing the proper socket to begin with. You are not
supposed to close the server's socket, just the client socket that the
server stores in the Connections[] property. For example:
ServerSocket1->Socket->Connections[index]->Close();
Gambit
|
|
| Back to top |
|
 |
Suodatin Pussi Guest
|
Posted: Tue Apr 13, 2004 9:46 pm Post subject: Re: how to drop client connections on server socket? |
|
|
Will try that again. For some reason it just kept closing all the
connections (the socket) not just drop a single connection.
| Quote: | Use the server's ActiveConnections[] property. Find the client that you are
interested in and simply Close() it.
Gambit
|
|
|
| Back to top |
|
 |
Suodatin Pussi Guest
|
Posted: Tue Apr 13, 2004 10:28 pm Post subject: Re: how to drop client connections on server socket? |
|
|
Ok thanks, it works now
| Quote: | ServerSocket1->Socket->Connections[index]->Close();
Gambit
|
|
|
| Back to top |
|
 |
|