[Lazarus] lnet sockets
Antonio Fortuny
a.fortuny at sitasoftware.lu
Thu Oct 25 10:41:50 CEST 2012
Le 24/10/2012 17:27, Bernd a écrit :
> 2012/10/24 Antonio Fortuny <a.fortuny at sitasoftware.lu>:
>
>> Question is: The two pieces of code for the timer(1) and the socket(2) will
>> they be active when the main thread enters the wait state thru the
>> WaitForSingleObject ?
>
> Is this an LCL application? If yes then you may MOT block the main
> thread that way. Neither the timer nor the lnet event would be able to
> fire anymore, it would be frozen forever.
This is what I suspected
>
> Why don't you just make it everything entirely evented and do not
> block anything?
Because application processing does not permit shuch a way. It is a
client TCP application and requests only one socket connected to one
server. An entirely evented application is not manageable in this context
>
More information about the Lazarus
mailing list