> If you're running a server with TWSocketServer and you have multiple > clients that are connected to your server, how could you determine the > index number of a client upon receiving data from it? That is, within > the OnDataAvailable procedure.
In each event, you have the sender argument which designate the TWSocket instance handling the client connection. Just cast sender to the appropriate type (TWSocketServer.ClientClass). If you really need the index in the TWSocketServer.Client array, you have to do a scan. See how TWSocketServer.IsClient method is implemented. Be aware that the index will change as clients connect and disconnect ! Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be -- 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