Changes between Version 17 and Version 18 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/File/CFile
- Timestamp:
- 08/23/10 10:44:29 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/Prog/Manual/ApplicationLibraries/lib825ev/File/CFile
v17 v18 361 361 362 362 === SetNonBlocking === 363 363 Set the file to not wait for data to arrive when reading. 364 364 {{{ 365 365 void SetNonBlocking(void); 366 366 }}} 367 367 368 ==== Parameters ==== 369 370 Function does not accept any parameters 371 372 ==== Return Value ==== 373 374 Function does not return a value 375 376 ==== Remarks ==== 377 378 ==== Example ==== 379 380 {{{ 381 CFile fileComm("/dev/ttyS0", "r"); 382 if(fileComm.IsOpen()) 383 { 384 fileComm.SetNonBlocking(); 385 // Reads will now return whatever data is available without hanging waiting on more data. 386 } 387 }}} 368 388 369 389 === Read ===