Mahlzeit
Jim Rees <[EMAIL PROTECTED]> wrote:
> Reading characters from the drive/card
> will be a little bit more complicated, as the
> exactly length of returned data canşt be forseen.
>
> It would be nice if IO_Read would return the number of bytes actually read.
> But since it doesn't, I think the correct way to use it is to read one at a
> time in a loop until IO_Read returns FALSE (or until you know you have them
> all). I don't see any reason to bypass IO_Read.
For this reason T=1 has defined CWT (character waiting time).
I use SIO_WaitForData for the BWT (block waiting time) and
SIO_SetReadTimeout for the CWT. No problem so far with this solution.
Mahlzeit
endergone Zwiebeltuete
***************************************************************
Linux Smart Card Developers - M.U.S.C.L.E.
(Movement for the Use of Smart Cards in a Linux Environment)
http://www.linuxnet.com/smartcard/index.html
***************************************************************