mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-07 05:58:45 +01:00
Expose remote FD via zmq_msg_get(&msg, ZMQ_SRCFD)
This patch allows client applications to retrieve the remote endpoint from a message that originated from a tcp socket
This commit is contained in:
@@ -106,6 +106,9 @@ namespace zmq
|
||||
|
||||
int monitor (const char *endpoint_, int events_);
|
||||
|
||||
void set_fd(fd_t fd_);
|
||||
fd_t fd();
|
||||
|
||||
void event_connected (std::string &addr_, int fd_);
|
||||
void event_connect_delayed (std::string &addr_, int err_);
|
||||
void event_connect_retried (std::string &addr_, int interval_);
|
||||
@@ -230,6 +233,9 @@ namespace zmq
|
||||
// True if the last message received had MORE flag set.
|
||||
bool rcvmore;
|
||||
|
||||
// File descriptor if applicable
|
||||
fd_t file_desc;
|
||||
|
||||
// Improves efficiency of time measurement.
|
||||
clock_t clock;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user