[Lazarus] Reading and writing TMemoryStream in events?

Paul Breneman list2010 at BrenemanLabs.com
Tue Nov 9 04:47:52 CET 2010


Henry Vermaak wrote:
> On 08/11/10 15:56, Michael Schnell wrote:
>> On 11/08/2010 01:52 PM, Henry Vermaak wrote:
>>> Just curious, why don't you use select() instead of polling?
>> AFAIK, select() is not portable.
> 
> It's pretty portable, being POSIX and all.  For Windows you'd use 
> overlapped io, iocp and wait functions.  Or libevent, which is supposed 
> to be completely cross platform, but I haven't tried that yet.

I am trying to keep my code portable, so I'll have to look at libevent 
more.  Thanks for mentioning it.




More information about the Lazarus mailing list