diff options
author | Josh Blum <josh@joshknows.com> | 2011-12-20 14:37:05 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-12-20 14:37:05 -0800 |
commit | 1fef438d8ba54d07760a21e8e8b50c05b7ddc051 (patch) | |
tree | 2c3fb21379620a196ce6d116418906e95a3fa4de /host/include | |
parent | cdf8de0ca34d787ee9b3fed543f5e45bc2df00fa (diff) | |
download | uhd-1fef438d8ba54d07760a21e8e8b50c05b7ddc051.tar.gz uhd-1fef438d8ba54d07760a21e8e8b50c05b7ddc051.tar.bz2 uhd-1fef438d8ba54d07760a21e8e8b50c05b7ddc051.zip |
usrp2: use the socket to determine the device addr
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/transport/udp_simple.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/host/include/uhd/transport/udp_simple.hpp b/host/include/uhd/transport/udp_simple.hpp index 83d1072ee..ead3ad4b7 100644 --- a/host/include/uhd/transport/udp_simple.hpp +++ b/host/include/uhd/transport/udp_simple.hpp @@ -85,6 +85,12 @@ public: * \return the number of bytes received or zero on timeout */ virtual size_t recv(const boost::asio::mutable_buffer &buff, double timeout = 0.1) = 0; + + /*! + * Get the last IP address as seen by recv(). + * Only use this with the broadcast socket. + */ + virtual std::string get_recv_addr(void) = 0; }; }} //namespace |