diff options
author | Josh Blum <josh@joshknows.com> | 2010-02-12 18:07:55 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-02-12 18:07:55 -0800 |
commit | 9fff25f4e5da179ea29ff44278e0415a337870cb (patch) | |
tree | cfbee4cf2921fd4bd415e3af1c1d466f79bab3d7 /apps/discover_usrps.cpp | |
parent | 350f5c5decca20a54132867283448fd32226bbc2 (diff) | |
download | uhd-9fff25f4e5da179ea29ff44278e0415a337870cb.tar.gz uhd-9fff25f4e5da179ea29ff44278e0415a337870cb.tar.bz2 uhd-9fff25f4e5da179ea29ff44278e0415a337870cb.zip |
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.
Diffstat (limited to 'apps/discover_usrps.cpp')
-rw-r--r-- | apps/discover_usrps.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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<std::string>(); + device_addr["addr"] = vm["ip-addr"].as<std::string>(); } else { std::cout << "IP Addess was not set" << std::endl; return ~0; |