summaryrefslogtreecommitdiff
path: root/2005/i/robert/src/proto/proto.hh
diff options
context:
space:
mode:
authorschodet2005-04-10 00:29:15 +0000
committerschodet2005-04-10 00:29:15 +0000
commit2092461fd47d0cbab749529ba18ee894e1fe6e50 (patch)
tree12b15364419306915940287c78e377ec2c584eef /2005/i/robert/src/proto/proto.hh
parente46b1d36099f8792f88b77ee42730de2ecf93c26 (diff)
test_proto version pas light.
Add: Proto::wait.
Diffstat (limited to '2005/i/robert/src/proto/proto.hh')
-rw-r--r--2005/i/robert/src/proto/proto.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/2005/i/robert/src/proto/proto.hh b/2005/i/robert/src/proto/proto.hh
index 5753fe0..0a2099b 100644
--- a/2005/i/robert/src/proto/proto.hh
+++ b/2005/i/robert/src/proto/proto.hh
@@ -95,6 +95,10 @@ class Proto : public NonCopyable
static bool decode (const Frame &frame, const char *format, int &a0, int
&a1, int &a2, int &a3);
//@}
+ /// Attend que des caractères soit disponible pendant un temps maximum en
+ /// milliseconde et les traite. Renvois le résultat de sync (). Attention,
+ /// fonction bloquante, n'utiliser que pour les tests.
+ bool wait (int timeout = -1);
public:
/// Les clients de Proto doivent dériver de Receiver.
class Receiver