Thanks Angus,
I don't know if we are at the same track,
The reason of trying to get the number of the client is: To use it for
sending commands to the client as following,
"SslWSocketServer1.Client[0].SendStr(ledSendCommand.Text + #13 + #10);"
The idea is not the answer when the client asks something, it is to send
command with out asking.
Let's say, I just want to send "Reboot" comand to the client.
If I have many clients connected and I have all the clients are listed in a
"TLISTBOX" or in "COMBOBOX" and I just want to select one of them and send
the command.
Thanks
-----Original Message-----
From: Angus Robertson - Magenta Systems Ltd
Sent: Tuesday, January 18, 2011 11:48 AM
To: twsocket@elists.org
Subject: Re: [twsocket] TWSocket and Client number
What do I need to do to get the client number into the server?
You don't because the client number changes each time a new connection is
added or closed. You have to lookup the number each time you need it.
Or design your application so it's not needed.
Look at the FTP server component and it's demo project, which does
exactly what you are laboriously attempting to replicate. It sends data
back to clients, in response to data sent by the clients. And it sends
files.
Angus
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be