> MySocket:=TWSocketServer.Create(nil); > MySocket.OnClientCreate:=MyOnClientCreate; > MySocket.OnClientConnect:=MyOnClientConnect; > MySocket.OnDataAvailable:=MyOnDataAvailable; > > Doing this will not make MyOnDataAvailable work unless I also put it > on the MyOnClientConnect;
You are confusing the events on the server socket with the event on each of the client socket handling each client connection. You must assign client socket events from the OnClientConnect event. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] 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