summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhaller2005-05-03 23:32:24 +0000
committerhaller2005-05-03 23:32:24 +0000
commit626e59a6ab3e8efc91ac4808dd21ad69f4411366 (patch)
tree0714535e3f1694650e45960e568b4dd0f3bfc21f
parent1088353f651f096d7ddf6f4e52bb962e452c16ff (diff)
Récupération des file descriptor
-rw-r--r--2005/i/robert/src/serial/serial.hh2
-rw-r--r--2005/i/robert/src/serial/serial_base.hh2
2 files changed, 4 insertions, 0 deletions
diff --git a/2005/i/robert/src/serial/serial.hh b/2005/i/robert/src/serial/serial.hh
index 71fdd26..23feb42 100644
--- a/2005/i/robert/src/serial/serial.hh
+++ b/2005/i/robert/src/serial/serial.hh
@@ -57,6 +57,8 @@ class Serial
/// Attend que des caractères soient disponibles pendant un delay en
/// millisecondes.
bool wait (int timeout = -1) { return sb_->wait (timeout); }
+ /// Récupère le descripteur.
+ int getFd (void) { return sb_->getFd (); }
};
#endif // serial_hh
diff --git a/2005/i/robert/src/serial/serial_base.hh b/2005/i/robert/src/serial/serial_base.hh
index b940a6e..9caf27d 100644
--- a/2005/i/robert/src/serial/serial_base.hh
+++ b/2005/i/robert/src/serial/serial_base.hh
@@ -61,6 +61,8 @@ class SerialBase
/// Attend que des caractères soient disponibles pendant un delay en
/// millisecondes.
bool wait (int timeout = -1);
+ /// Récupère le descripteur.
+ int getFd (void) { return fdIn_; }
};
#endif // serial_base_hh