USRP Hardware Driver and USRP Manual  Version: 3.11.0.HEAD-0-gdca39145
UHD and USRP Manual
udp_zero_copy.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2010 Ettus Research LLC
3 //
4 // SPDX-License-Identifier: GPL-3.0
5 //
6 
7 #ifndef INCLUDED_UHD_TRANSPORT_UDP_ZERO_COPY_HPP
8 #define INCLUDED_UHD_TRANSPORT_UDP_ZERO_COPY_HPP
9 
10 #include <uhd/config.hpp>
13 #include <boost/shared_ptr.hpp>
14 
15 namespace uhd{ namespace transport{
16 
27 class UHD_API udp_zero_copy : public virtual zero_copy_if{
28 public:
29  struct buff_params {
32  };
33 
34  typedef boost::shared_ptr<udp_zero_copy> sptr;
35 
52  static sptr make(
53  const std::string &addr,
54  const std::string &port,
55  const zero_copy_xport_params &default_buff_args,
56  udp_zero_copy::buff_params& buff_params_out,
57  const device_addr_t &hints = device_addr_t()
58  );
59 
66  virtual uint16_t get_local_port(void) const = 0;
67 
73  virtual std::string get_local_addr(void) const = 0;
74 };
75 
76 }} //namespace
77 
78 #endif /* INCLUDED_UHD_TRANSPORT_UDP_ZERO_COPY_HPP */
boost::shared_ptr< udp_zero_copy > sptr
Definition: udp_zero_copy.hpp:34
Definition: zero_copy.hpp:129
Definition: udp_zero_copy.hpp:29
Definition: build_info.hpp:14
size_t send_buff_size
Definition: udp_zero_copy.hpp:31
Definition: udp_zero_copy.hpp:27
#define UHD_API
Definition: config.h:62
size_t recv_buff_size
Definition: udp_zero_copy.hpp:30
Definition: zero_copy.hpp:141
Definition: device_addr.hpp:36