USRP Hardware Driver and USRP Manual Version: 4.1.0.1
UHD and USRP Manual
uhd::transport::zero_copy_if Class Referenceabstract

#include <uhd/transport/zero_copy.hpp>

Inheritance diagram for uhd::transport::zero_copy_if:
uhd::transport::tcp_zero_copy uhd::transport::udp_zero_copy uhd::transport::usb_zero_copy uhd::transport::zero_copy_flow_ctrl

Public Types

typedef std::shared_ptr< zero_copy_ifsptr
 

Public Member Functions

virtual ~zero_copy_if ()
 
virtual managed_recv_buffer::sptr get_recv_buff (double timeout=0.1)=0
 
virtual size_t get_num_recv_frames (void) const =0
 
virtual size_t get_recv_frame_size (void) const =0
 
virtual managed_send_buffer::sptr get_send_buff (double timeout=0.1)=0
 
virtual size_t get_num_send_frames (void) const =0
 
virtual size_t get_send_frame_size (void) const =0
 

Detailed Description

A zero-copy interface for transport objects. Provides a way to get send and receive buffers with memory managed by the transport object.

Member Typedef Documentation

◆ sptr

Constructor & Destructor Documentation

◆ ~zero_copy_if()

virtual uhd::transport::zero_copy_if::~zero_copy_if ( )
inlinevirtual

Clean up tasks before releasing the transport object.

Member Function Documentation

◆ get_num_recv_frames()

virtual size_t uhd::transport::zero_copy_if::get_num_recv_frames ( void  ) const
pure virtual

Get the number of receive frames: The number of simultaneous receive buffers in use.

Returns
number of frames

◆ get_num_send_frames()

virtual size_t uhd::transport::zero_copy_if::get_num_send_frames ( void  ) const
pure virtual

Get the number of send frames: The number of simultaneous send buffers in use.

Returns
number of frames

◆ get_recv_buff()

virtual managed_recv_buffer::sptr uhd::transport::zero_copy_if::get_recv_buff ( double  timeout = 0.1)
pure virtual

Get a new receive buffer from this transport object.

Parameters
timeoutthe timeout to get the buffer in seconds
Returns
a managed buffer, or null sptr on timeout/error

◆ get_recv_frame_size()

virtual size_t uhd::transport::zero_copy_if::get_recv_frame_size ( void  ) const
pure virtual

Get the size of a receive frame: The maximum capacity of a single receive buffer.

Returns
frame size in bytes

◆ get_send_buff()

virtual managed_send_buffer::sptr uhd::transport::zero_copy_if::get_send_buff ( double  timeout = 0.1)
pure virtual

Get a new send buffer from this transport object.

Parameters
timeoutthe timeout to get the buffer in seconds
Returns
a managed buffer, or null sptr on timeout/error

◆ get_send_frame_size()

virtual size_t uhd::transport::zero_copy_if::get_send_frame_size ( void  ) const
pure virtual

Get the size of a send frame: The maximum capacity of a single send buffer.

Returns
frame size in bytes

The documentation for this class was generated from the following file: