diff options
author | Brennan Ashton <bashton@brennanashton.com> | 2018-11-02 23:50:49 -0700 |
---|---|---|
committer | Andrej Rode <mail@andrejro.de> | 2018-11-28 00:02:35 +0100 |
commit | b76a95c52f812181605248f1f590a199e2e5d0e3 (patch) | |
tree | 9493ca923d95928a4a662e2c05f6d1c95b426029 /gr-zeromq/include/gnuradio/zeromq/pull_source.h | |
parent | 0733bc4f788c424264d26c1a1f82d831c91b2c15 (diff) |
gr-zeromq: Add last_endpoint function to zmq source and sink blocks
The main reason for this is is allows you to read back the real
address string in the case that port 0 is used and the OS has
auto-assigned a free port.
Diffstat (limited to 'gr-zeromq/include/gnuradio/zeromq/pull_source.h')
-rw-r--r-- | gr-zeromq/include/gnuradio/zeromq/pull_source.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gr-zeromq/include/gnuradio/zeromq/pull_source.h b/gr-zeromq/include/gnuradio/zeromq/pull_source.h index ecfe508b0a..47628cf20d 100644 --- a/gr-zeromq/include/gnuradio/zeromq/pull_source.h +++ b/gr-zeromq/include/gnuradio/zeromq/pull_source.h @@ -54,6 +54,11 @@ namespace gr { */ static sptr make(size_t itemsize, size_t vlen, char *address, int timeout=100, bool pass_tags=false, int hwm=-1); + + /*! + * \brief Return a std::string of ZMQ_LAST_ENDPOINT from the underlying ZMQ socket. + */ + virtual std::string last_endpoint() = 0; }; } // namespace zeromq |