Adding ZMQ_LAST_ENDPOINT for wildcard support on TCP and IPC sockets

This commit is contained in:
Ian Barber
2012-02-08 22:06:46 +00:00
parent 7e8a839a22
commit 7b32c9cb51
9 changed files with 99 additions and 7 deletions

View File

@@ -44,6 +44,9 @@ namespace zmq
// Set address to listen on.
int set_address (const char *addr_);
// Get the bound address for use with wildcards
int get_address(unsigned char *addr, size_t *len);
private:
@@ -64,6 +67,10 @@ namespace zmq
// Address to listen on.
tcp_address_t address;
// Store the connected endpoint for binds to port 0
char bound_addr[256];
size_t bound_addr_len;
// True, if the undelying file for UNIX domain socket exists.
bool has_file;