| 28 | #define NO_SKIP_CHAR 1 // a magic char not found in a valid ASCII numeric field |
| 29 | |
| 30 | int Stream::timedRead() |
| 31 | { |
| 32 | OneShotFastMs timer(receiveTimeout); |
| 33 | |
| 34 | int c; |
| 35 | while((c = read()) < 0 && !timer.expired()) { |
| 36 | } |
| 37 | |
| 38 | return c; |
| 39 | } |
| 40 | |
| 41 | int Stream::timedPeek() |
| 42 | { |