HI François

Thanks for the advices

Having two separet thread is not enough. You have to closely look at how the receiving thread communicate with the processing/display thread. For example if you use synchronize, you actually defeat the multithreading. Same with SendMessage. You must keep the message pump of the receiver thread run at full speed.

I found the problem and I´m mad at my self!!

The problem is that I was not setting the receive buffer size... But I have programmed it.. only for Listening state, when the socket enters on listen state I set the receive buffer and it always worked because I usually only use UDP sockets to listen, but I was making a particular implementation that I had to send UDP data on the same socket, so I used Connect method instead of Listen, so, when socket changed state, it was not setting the receive buffer size because it was only programmed to set the size when socket was Listening!

Well...

Silly

Thanks a lot!
Eric
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to