|
From: <bo...@us...> - 2008-06-02 03:04:48
|
Revision: 146
http://gearbox.svn.sourceforge.net/gearbox/?rev=146&view=rev
Author: borax00
Date: 2008-06-01 20:04:54 -0700 (Sun, 01 Jun 2008)
Log Message:
-----------
Modified Paths:
--------------
gearbox/trunk/src/gbxserialacfr/serial.h
Modified: gearbox/trunk/src/gbxserialacfr/serial.h
===================================================================
--- gearbox/trunk/src/gbxserialacfr/serial.h 2008-06-01 03:14:13 UTC (rev 145)
+++ gearbox/trunk/src/gbxserialacfr/serial.h 2008-06-02 03:04:54 UTC (rev 146)
@@ -77,6 +77,10 @@
//! but can't set the {en|dis}abled state of timeouts.
void setTimeout( const Timeout &timeout );
+ //! Gets the current timeout.
+ //! A timeout value of (sec=0,usec=0) indicates 'timeouts disabled'.
+ const Timeout &timeout() const { return timeout_; }
+
//! Reads up to @c count bytes into buffer @c buf.
//! Returns the number of bytes read, or '-1' on timeout (if timeouts are enabled).
//! If timeouts are not enabled, blocks till it gets something.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|