[Lazarus] Serial communication??

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Tue Sep 28 21:12:45 CEST 2010

On Tue, Sep 28, 2010 at 9:08 PM, Bo Berglund <bo.berglund at gmail.com> wrote:
> 1) Is serial communication with events not possible in FPC on Linux?

Of course it is possible. You just have to write your own library to
do it. One possibility would be adapting lNet, like Synaser adapts

> 2) How can one use blocking reads when there is no way to know exactly when
> data will arrive? Everything else will stop when waiting for data, right?

By using a timeout. Timeout = 0 returns immediately, so you can use
this to check periodicaly if data comes.

Felipe Monteiro de Carvalho

More information about the Lazarus mailing list