----- Original Message ----- 
From: "Jacco Bezemer" <[EMAIL PROTECTED]>
To: "ICS support mailing" <twsocket@elists.org>
Sent: Thursday, September 22, 2005 10:30 AM
Subject: Re: [twsocket] Connecting and sending in a thread


> Helo Francois and Wilfried,
>
> Thanks for your tips. I managed to get it working in a single thread.
>
> I think I need to do this in a thread because the send operation takes
> a long time. This due to the fact that retrieving the data, formatting
> it into XML and sending it eventually is in a loop and is not event
> driven. I'm investigating on how to make this event-driven so I don't
> need multi-threading.
>
> Both many thanks for your input,
> Jacco
>

To clarify what Francois said, you could have a thread that does that 
processing, and posts messages back to your main form with the data, which 
then calls WSocket.Send to send that data.  Then you don't have to worry 
about multithreaded sockets.

Dan 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to