diff options
author | Josh Blum <josh@joshknows.com> | 2011-12-21 13:05:44 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-12-21 13:05:44 -0800 |
commit | 9f0a1e3148251c820a73c8a33da92e54aaffee6d (patch) | |
tree | d74b28fdd92a9969c4d71e0cbd5c1425e1ea4dc7 /host/include | |
parent | 81289ab0510c847daacf75e261cad2de5cd7d508 (diff) | |
parent | bdb267b9f445e929f765b481c038edbd6310ce85 (diff) | |
download | uhd-9f0a1e3148251c820a73c8a33da92e54aaffee6d.tar.gz uhd-9f0a1e3148251c820a73c8a33da92e54aaffee6d.tar.bz2 uhd-9f0a1e3148251c820a73c8a33da92e54aaffee6d.zip |
Merge branch 'network_foo'
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 |