Re: [twsocket] Question about twsocketthrdserver

2012-04-09 Thread Tony Caduto
I'm just doing a sendline after finding the client object in the tdictionary, doesn't a send just put the data in the buffer? I even put the sendline in the critical section and one of the clients still stops responding after about 10 to 20 messages are sent, so it does work for awhile. I will che

Re: [twsocket] Question about twsocketthrdserver

2012-04-09 Thread Arno Garrels
Arno Garrels wrote: > Access to the protected TDictonary object is thread-safe, however > it is not calling methods and access properties of the client objects. > You have to communicate with the clients using Window messages. > Look at how TWSocketThrdClient defines a new message ID and overrides

Re: [twsocket] Question about twsocketthrdserver

2012-04-09 Thread Arno Garrels
Tony Caduto wrote: > Hi, > I have a chat server is ported from synapse and I used > twsocketthrdserver so it would scale with 200 sockets per thread. The > problem is in my original server i used a generic tdictionary to > store pointers to the client objects. I use a critical section to > protect