BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how to drop client connections on server socket?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Suodatin Pussi
Guest





PostPosted: Tue Apr 13, 2004 8:03 pm    Post subject: how to drop client connections on server socket? Reply with quote



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





PostPosted: Tue Apr 13, 2004 9:06 pm    Post subject: Re: how to drop client connections on server socket? Reply with quote




"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





PostPosted: Tue Apr 13, 2004 9:45 pm    Post subject: Re: how to drop client connections on server socket? Reply with quote




"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





PostPosted: Tue Apr 13, 2004 9:46 pm    Post subject: Re: how to drop client connections on server socket? Reply with quote

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





PostPosted: Tue Apr 13, 2004 10:28 pm    Post subject: Re: how to drop client connections on server socket? Reply with quote

Ok thanks, it works now

Quote:
ServerSocket1->Socket->Connections[index]->Close();


Gambit



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.