poll() blocks for ever when timeout is negative.

This commit is contained in:
wpelissero
2015-09-10 09:54:01 +02:00
parent 47da376034
commit 4eb06e0f1b
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -50,9 +50,9 @@ static pointer from_url(std::string url);
static pointer create_dummy();
// Function to perform actual network send()/recv() I/O:
// (note: if all you need is to recv()/dispatch() messages, then timeout can be
// used to block until a message arrives. By default, when timeout is 0, poll()
// will not block at all.)
// (note: if all you need is to recv()/dispatch() messages, then a
// negative timeout can be used to block until a message arrives.
// By default, when timeout is 0, poll() will not block at all.)
void poll(int timeout = 0); // timeout in milliseconds
// Receive a message, and pass it to callable(). Really, this just looks at