Re: [twsocket] Why is TWSocket.OnDataSent being called twice?

2012-11-07 Thread Arno Garrels
Doug Billi wrote: I've heard a lot about IOCP and wondered how much benefit (if any) such an implementation would have over standard asynchronous sockets. I had thoughts, yes. I even wrote a little test server however speed didn't convince me. And of course, since IOCP is Windows only it

Re: [twsocket] Why is TWSocket.OnDataSent being called twice?

2012-11-06 Thread Arno Garrels
Doug Billi wrote: I've implemented a TWSocket client using a state machine, but after I send the data using SendStr(), the OnDataSent() event gets fired twice. That is normal behaviour. After a Connect two select messages are received from winsock, FD_Connect and FD_Write. The latter