[twsocket] Client Connect Timeout: How do I use TWSocket.TimeoutConnect?

2012-11-07 Thread Doug Billi
I want my TCP client to timeout if it can't connect within 3 seconds. I've looked at the documentation, but it isn't clear how the TimeoutConnect property should be specified (milliseconds, seconds?). After examining the code, it looks somewhat complicated with additional properties like Timeo

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

2012-11-07 Thread Doug Billi
- From: Arno Garrels [mailto:arno.garr...@gmx.de] Sent: Tuesday, November 06, 2012 10:35 PM To: ICS support mailing Subject: Re: [twsocket] Why is TWSocket.OnDataSent being called twice? Doug Billi wrote: > I've implemented a TWSocket client using a state machine, but after I > sen

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

2012-11-06 Thread Doug Billi
I've implemented a TWSocket client using a state machine, but after I send the data using SendStr(), the OnDataSent() event gets fired twice. I've confirmed that the data I'm sending is being put into a single buffer (it's 527 bytes), so I don't understand why the OnDataSent() method is being