Thank you.
WSocket1.MessageLoop; works great.
Best regards,
FlashT

Dnia 30 sierpnia 2008 9:49 "Arno Garrels" <[EMAIL PROTECTED]> napisał(a):

> Ja wrote:
> > Ok then, I really need it to be in thread, so what do I do to make my
> > code work?
> 
> At first read this: 
>  http://wiki.overbyte.be/wiki/index.php/FAQ.MultiThreading
> 
> If you still believe you have to run TWSocket in a thread you
> need a message loop (as Paul pointed out).
> 
> Something like:
> 
> procedure TMyThread.Execute;
> begin
>        WSocket1  := TWSocket.Create(nil);
>        try
>             Assign event handlers and properties..
>              WSocket1.Connect;
>             // Start the message loop, post WM_QUIT message latert to break 
> the loop. 
>              WSocket1.MessageLoop;
>       finally
>              WSocket1.Free;  
>      end;
> end; 
> 
> OpenSSL in a multi-threaded application you also requires use of
> one of the components from OverbyteIcsSslThrdLock.pas, otherwise
> OpenSSL libraries won't be thread-safe, read the comment section of
> that unit. 
> 
> --
> Arno Garrels [TeamICS]
> http://www.overbyte.be/eng/overbyte/teamics.html
> 
> 
> 
> > 
> > 
> > Dnia 30 sierpnia 2008 9:18 "Arno Garrels" 
> > napisał(a): 
> > 
> >> Ja wrote:
> >>> How do I work in blocking mode?
> >> 
> >> ICS works non-blocking:
> >> http://wiki.overbyte.be/wiki/index.php/Asynchronous_Paradigm Even
> >> though some upper level components support blocking mode as well 
> >> it's suggested to work asynchronous.
> >> 
> >> --
> >> Arno Garrels [TeamICS]
> >> http://www.overbyte.be/eng/overbyte/teamics.html
> >> 
> >> --
> >> 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
> -- 
> 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
-- 
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