fix to 3-thread synchronisation algorithm

This commit is contained in:
Martin Sustrik
2009-08-09 11:21:47 +02:00
parent 5b5b513330
commit bde396f156
7 changed files with 142 additions and 14 deletions

View File

@@ -21,6 +21,7 @@
#define __ZMQ_TCP_LISTENER_HPP_INCLUDED__
#include "fd.hpp"
#include "ip.hpp"
namespace zmq
{
@@ -34,10 +35,13 @@ namespace zmq
tcp_listener_t ();
~tcp_listener_t ();
// Open TCP listining socket. Address is in
// Set up the address to listen on. Address is in
// <interface-name>:<port-number> format. Interface name may be '*'
// to bind to all the interfaces.
int open (const char *addr_);
int set_address (const char *addr_);
// Open TCP listining socket.
int open ();
// Close the listening socket.
int close ();
@@ -53,6 +57,9 @@ namespace zmq
private:
// IP address/port to listen on.
sockaddr_in addr;
// Underlying socket.
fd_t s;