Loading...
Searching...
No Matches
udp_zero_copy.hpp
Go to the documentation of this file.
//
// Copyright 2010 Ettus Research LLC
// Copyright 2018 Ettus Research, a National Instruments Company
//
// SPDX-License-Identifier: GPL-3.0-or-later
//
#pragma once
#include <uhd/config.hpp>
#include <uhd/transport/zero_copy.hpp>
#include <uhd/types/device_addr.hpp>
#include <memory>
namespace uhd { namespace transport {
class UHD_API udp_zero_copy : public virtual zero_copy_if
{
public:
struct buff_params
{
size_t recv_buff_size;
size_t send_buff_size;
};
typedef std::shared_ptr<udp_zero_copy> sptr;
static sptr make(const std::string& addr,
const std::string& port,
const zero_copy_xport_params& default_buff_args,
udp_zero_copy::buff_params& buff_params_out,
const device_addr_t& hints = device_addr_t());
virtual uint16_t get_local_port(void) const = 0;
virtual std::string get_local_addr(void) const = 0;
};
}} // namespace uhd::transport
uhd::device_addr_t
Definition device_addr.hpp:39
uhd::transport::udp_zero_copy
Definition udp_zero_copy.hpp:28
uhd::transport::udp_zero_copy::make
static sptr make(const std::string &addr, const std::string &port, const zero_copy_xport_params &default_buff_args, udp_zero_copy::buff_params &buff_params_out, const device_addr_t &hints=device_addr_t())
uhd::transport::udp_zero_copy::get_local_port
virtual uint16_t get_local_port(void) const =0
uhd::transport::udp_zero_copy::sptr
std::shared_ptr< udp_zero_copy > sptr
Definition udp_zero_copy.hpp:36
uhd::transport::udp_zero_copy::get_local_addr
virtual std::string get_local_addr(void) const =0
uhd::transport::zero_copy_if
Definition zero_copy.hpp:147
UHD_API
#define UHD_API
Definition config.h:87
config.hpp
device_addr.hpp
uhd::transport
Definition adapter_id.hpp:11
uhd
Definition build_info.hpp:12
uhd::transport::udp_zero_copy::buff_params
Definition udp_zero_copy.hpp:31
uhd::transport::udp_zero_copy::buff_params::send_buff_size
size_t send_buff_size
Definition udp_zero_copy.hpp:33
uhd::transport::udp_zero_copy::buff_params::recv_buff_size
size_t recv_buff_size
Definition udp_zero_copy.hpp:32
uhd::transport::zero_copy_xport_params
Definition zero_copy.hpp:123
zero_copy.hpp