> In a console app's thread, I make a valid connection, I call 
> SslWSocket->Send, followed by MessageLoop.
> Once I receive OnDataSent message I call 
> SslWSocket->PostQuitMessage();
> 
> And the data is sent and the control returns to the thread - 
> perfect.
> 
> The second time I want to send data (without closing-reopening the 
> connection - which is not allowed by Apple) the MessageLoop 
> immediately returns as SetTerminated(TRUE) was called once the 
> MessageLoop was exited in the previous send.
> *Question what is the correct way to use a SslWSocket to send data 
> over a continuously open connection?*

If I understand you correctly, you are exiting the thread after open and a 
single
send, which will close the connection.  

You need to keep the thread running and send a message to it (or use a thread 
event
to pick something up) to send the next block.

Angus

-- 
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