Re: [twsocket] Connection catch-22

2006-11-17 Thread Francois Piette
> When I call TWSocket's Send method, I'm getting error 10057, > "Send Socket is not connected" It is because you call Send immediately after Calling Connect. TWSocket is a NON-BLOCKING component. When you call Connect, you get control back immediately (the next line execute immediately) while the

[twsocket] Connection catch-22

2006-11-16 Thread Clay Shannon
When I call TWSocket's Send method, I'm getting error 10057, "Send Socket is not connected" Even after adding a call to WSocket_AsClient.Connect, I still get the same thing. However, when I add a second call to Connect() just before the call to Send(), I get "Socket already in use" Here