USRP Hardware Driver and USRP Manual
Version: 4.4.0.HEAD-0-g5fac246b
UHD and USRP Manual
udp_zero_copy.hpp
Go to the documentation of this file.
1
//
2
// Copyright 2010 Ettus Research LLC
3
// Copyright 2018 Ettus Research, a National Instruments Company
4
//
5
// SPDX-License-Identifier: GPL-3.0-or-later
6
//
7
8
#pragma once
9
10
#include <
uhd/config.hpp
>
11
#include <
uhd/transport/zero_copy.hpp
>
12
#include <
uhd/types/device_addr.hpp
>
13
#include <memory>
14
15
namespace
uhd
{
namespace
transport {
16
27
class
UHD_API
udp_zero_copy
:
public
virtual
zero_copy_if
28
{
29
public
:
30
struct
buff_params
31
{
32
size_t
recv_buff_size
;
33
size_t
send_buff_size
;
34
};
35
36
typedef
std::shared_ptr<udp_zero_copy>
sptr
;
37
54
static
sptr
make(
const
std::string& addr,
55
const
std::string& port,
56
const
zero_copy_xport_params
& default_buff_args,
57
udp_zero_copy::buff_params
& buff_params_out,
58
const
device_addr_t
& hints =
device_addr_t
());
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 uhd::transport
uhd::transport::udp_zero_copy::buff_params::send_buff_size
size_t send_buff_size
Definition:
udp_zero_copy.hpp:33
device_addr.hpp
config.hpp
uhd::transport::udp_zero_copy
Definition:
udp_zero_copy.hpp:27
uhd::transport::udp_zero_copy::buff_params::recv_buff_size
size_t recv_buff_size
Definition:
udp_zero_copy.hpp:32
UHD_API
#define UHD_API
Definition:
config.h:87
uhd::transport::zero_copy_if
Definition:
zero_copy.hpp:146
uhd::device_addr_t
Definition:
device_addr.hpp:37
uhd::transport::zero_copy_xport_params
Definition:
zero_copy.hpp:122
zero_copy.hpp
uhd::transport::udp_zero_copy::sptr
std::shared_ptr< udp_zero_copy > sptr
Definition:
udp_zero_copy.hpp:36
uhd::transport::udp_zero_copy::buff_params
Definition:
udp_zero_copy.hpp:30
uhd
Definition:
build_info.hpp:12
include
uhd
transport
udp_zero_copy.hpp
Generated by
1.8.17