Hello Melinda, TWSocketServer has this events (and some others) because it is derrived from TWSocket. But a server will never get any data. A server create local data sockets (mostly called Clients, but this is confusing sometime).
So in OnClientConnect you have a client whitch is also derived from TWSocket and there you can assigne an onDataAvailable event handler on. --- Rgds, Wilfried http://www.mestdagh.biz Tuesday, May 10, 2005, 09:17, Melinda Bellei wrote: > Hi, I'm new with ICS and i'm trying to develop some simple demos for > to learn it. TWSocketServer component has the event of OnDataAvailable > : > procedure TForm1.WServerDataAvailable(Sender: TObject; ErrCode: Word); > begin > // > end; > But i couldn't see any parameter about the socket(client) which send > this data. For example OnClientConnect has a parameter of "Client: > TWSocketClient". I couldn't find how to handle the incoming data into > the OnDataAvailable. Could you please give me a little explanation > about it ? > Cheers, > Mel > -- > 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 -- 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