Le Nov 14, 2008 à 5:42 PM, User a écrit :

> Hi, I have a client-server program made with lNet and I have several  
> clients conected to the server.
>
> The clients send petitions to the server and I want that the  
> response for the server is only for the client that has generated  
> the petition.
>
> For example I have three clients and one of them send "Hello" to the  
> server.
>
> When the server receibe "Hello" its responds "How are you?" but I  
> want that the server only send "How are you?" to the client whom it  
> has sent "Hello" and not for all the clients.



Each client connection has an id.
Take a glance at 
http://svn.freepascal.org/svn/fpcprojects/lnet/trunk/examples/console/ltcp/lserver.pp

You should use TLSocket to make the difference between each client




--
Damien Gerard
[EMAIL PROTECTED]

La raison de la bouffe est toujours la meilleure.










_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to