X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/f2c30ea366a1f0ef91e94000f89b16a763c0dccd..366ebfe19c715dc3773637f786f5a591a6bb8199:/process.h?ds=inline diff --git a/process.h b/process.h index b124593..fb1fe3f 100644 --- a/process.h +++ b/process.h @@ -99,8 +99,10 @@ private: // Returns true if there remains neighbors to listen for bool may_receive() { return ctrl_close_pending || data_close_pending; } - // Receive procedure: wait (or not) for a message to come - void receive(bool wait); + // Receive procedure + // Parameter "timeout" may be 0 for non-blocking operation, -1 for + // infinite waiting, or any positive timeout. + void receive(double timeout); // Finalize sends a "close" message to each neighbor and wait for // all of them to answer.