From 9fff25f4e5da179ea29ff44278e0415a337870cb Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Fri, 12 Feb 2010 18:07:55 -0800 Subject: Added a templated dictionary class because its more useful than map. Made the device addrs into a string:string dict. If its all strings we dont have to change the top level caller for new product. Created shared_iovec class to manage memory for device recvs. Work on the bro/dude control protocol for usrp2. --- apps/discover_usrps.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apps') diff --git a/apps/discover_usrps.cpp b/apps/discover_usrps.cpp index 036d6378a..52eb85b0a 100644 --- a/apps/discover_usrps.cpp +++ b/apps/discover_usrps.cpp @@ -41,9 +41,10 @@ int main(int argc, char *argv[]){ } //extract the ip address (not optional for now) - uhd::device_addr_t device_addr(uhd::DEVICE_ADDR_TYPE_UDP); + uhd::device_addr_t device_addr; + device_addr["type"] = "udp"; if (vm.count("ip-addr")) { - device_addr.udp_args.addr = vm["ip-addr"].as(); + device_addr["addr"] = vm["ip-addr"].as(); } else { std::cout << "IP Addess was not set" << std::endl; return ~0; -- cgit v1.2.3