Gili
Gili

Reputation: 89993

How to wait forever for at least one byte using COMMTIMEOUTS?

How can I configure COMMTIMEOUTS to wait forever for at least one byte to be read?

Upvotes: 1

Views: 588

Answers (1)

Gili
Gili

Reputation: 89993

I solved this problem by wrapping the read in a while loop. If no bytes were read I repeated the operation.

Upvotes: 1

Related Questions