Implement flow control for ZMQ_PUB sockets

This commit is contained in:
Martin Hurton
2010-03-02 10:48:30 +01:00
parent f9c84a1a68
commit 06d7a44737
2 changed files with 33 additions and 8 deletions

View File

@@ -54,6 +54,13 @@ namespace zmq
typedef yarray_t <class writer_t> out_pipes_t;
out_pipes_t out_pipes;
// Pointer to the pipe we are waiting for to became writable
// again; NULL if tha last send operation was successful.
class writer_t *stalled_pipe;
// Check whether we can write a message to all pipes.
bool check_write ();
pub_t (const pub_t&);
void operator = (const pub_t&);
};