> 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.
This result in a better programming model w
- Original Message -
From: "Jacco Bezemer" <[EMAIL PROTECTED]>
To: "ICS support mailing"
Sent: Thursday, September 22, 2005 10:30 AM
Subject: Re: [twsocket] Connecting and sending in a thread
> Helo Francois and Wilfried,
>
> Thanks for your tip
> I think I need to do this in a thread because the send
> operation takes a long time.
Sending is fully asynchronous, no need for thread there.
> 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.
Retrievi
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
> I'm not that familair with building multi-threaded applications, I
> gave it a try but I didn't get it working. When I connect in the main
> thread and create a thread in the onsessionconnect event, it works.
> But when I terminate the thread and want to reconnect in the main
> thread, I get a Wi
Hello Jacco,
> I'm not that familair with building multi-threaded applications, I
But are you sure you neec multi threading ? Can you give reason wy you
think it should be or tell something more about your application. You
can easy have honderts of connections running in 1 thread (main thread).
Hi Wilfried,
I'm not that familair with building multi-threaded applications, I
gave it a try but I didn't get it working. When I connect in the main
thread and create a thread in the onsessionconnect event, it works.
But when I terminate the thread and want to reconnect in the main
thread, I get
Hello Jacco,
There is no difference if you wants to do in a thread if all your code
is thread safe, and you need a message pump in the thread.
The most easy way is to develop / test all in main thread, so that you
know that eventually bugs are not because of threaded code bugs. To do
so you make
Hi,
I want to connect (and reconnect) within a thread and send XML data
within that same thread.
How do I accomplisch this? Can someone help me on this?
I'm using Delphi 7.
Thanks in advance,
Jacco
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elist