From 1fef438d8ba54d07760a21e8e8b50c05b7ddc051 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Tue, 20 Dec 2011 14:37:05 -0800 Subject: usrp2: use the socket to determine the device addr --- host/include/uhd/transport/udp_simple.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'host/include') 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 -- cgit v1.2.3