[Lazarus] One server and several clients [lNet]
Damien Gerard
milipili at shikami.org
Fri Nov 14 18:36:40 CET 2008
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
milipili at shikami.org
La raison de la bouffe est toujours la meilleure.
More information about the Lazarus
mailing list