----- Original Message ----- 
From: "Werner" <[EMAIL PROTECTED]>
To: <twsocket@elists.org>
Sent: Saturday, October 08, 2005 9:02 AM
Subject: [twsocket] Socket one to one


> Hi,
>
> Is it possible to have a socket connection from client to client ?
> Because I need only a 1 to 1 connection, I don't need a server socket who 
> is able to have multiple clients comming in.
>
> Is there a specific whay to have 1 to 1 connection. ?
> Has it any advantages not using serverSocket and only 2 clients-socket if 
> this is possible
>
> Thanks
> Werner
> -- 
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://www.elists.org/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>

At the server end just use a TWSocket instead of a TWSocketServer if you 
only need one client.  Then it needs to listen:
Socket.Listen;
and when a connection comes in (SessionAvailable) you accept it:
Socket.HSocket := Socket.Accept;
Then the connection is established.

Dan 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to