Hello,> TThrdSrvClient is only available in TWSocketThrdServer (the >
multi-threaded version), not TWSocketServer (the single-thread > version). It
seems you are using TWSocketThrdServer, so the rest of my > comment will assume
this.
In the examples ThrdSrvV y ThrdSrvV2, TThrdSrvClient appears with
TWSocketServer. It seems that it is used for adding the ClientThread to
TWSocketServer.
I understand that ,using TWSocketServer, I can have the class ClientThread for
encapsulating the funcionality of client.
> > > - In the event ClientDataAvailable, the client receive data. In this > >
> > > case, the data can to come the socketserver and the client. Do I use > >
> > > the Sender for distinguishing?> > ClientDataAvailable is triggered in the
> > > context of the ClientThread; > that is, it triggers when Client data is
> > > received. The SocketServer > data, when received, triggers
> > > OnDataAvailable. So you have two > different methods:> >
> > > TWSocketThrdServer.OnDataAvailable => Server's data>
> > > TWSocketThrdServer.OnClientDataAvailable => Client's data> > The
> > > OnClientDataAvailable event contains a reference to the actual > Client
> > > object that received the data. The Sender will represent the >
> > > ClientThread which owns that client.>
I understand that OnDataAvailable is used when the server receives data.
With the property Client, i can send data to the clients:
For i:=0 to ClientCount-1
Client[i].SendStr(str);
Next
Ok?
Regards.
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
--
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