gr-baz Package
baz_tcp_source Class Reference

Read stream from an UDP socket. More...

#include <baz_tcp_source.h>

Inheritance diagram for baz_tcp_source:

Public Member Functions

 ~baz_tcp_source ()
int get_port ()
 return the port number of the socket
void signal_eos ()
int work (int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)

Protected Member Functions

 baz_tcp_source (size_t itemsize, const char *host, unsigned short port, int buffer_size, bool verbose)
 UDP Source Constructor.

Friends

BAZ_API baz_tcp_source_sptr baz_make_tcp_source (size_t itemsize, const char *host, unsigned short port, int buffer_size=0, bool verbose=false)

Detailed Description

Read stream from an UDP socket.

Parameters
itemsizeThe size (in bytes) of the item datatype
hostThe name or IP address of the receiving host; can be NULL, None, or "0.0.0.0" to allow reading from any interface on the host
portThe port number on which to receive data; use 0 to have the system assign an unused port number
buffer_sizeTCP receiver buffer size
verboseOutput BorIP packet debug messages (helpful to judge packet loss)

Constructor & Destructor Documentation

◆ baz_tcp_source()

baz_tcp_source::baz_tcp_source ( size_t itemsize,
const char * host,
unsigned short port,
int buffer_size,
bool verbose )
protected

UDP Source Constructor.

Parameters
itemsizeThe size (in bytes) of the item datatype
hostThe name or IP address of the receiving host; can be NULL, None, or "0.0.0.0" to allow reading from any interface on the host
portThe port number on which to receive data; use 0 to have the system assign an unused port number
buffer_sizeTCP receiver buffer size
verboseOutput BorIP packet debug messages (helpful to judge packet loss)

◆ ~baz_tcp_source()

baz_tcp_source::~baz_tcp_source ( )

Member Function Documentation

◆ get_port()

int baz_tcp_source::get_port ( )

return the port number of the socket

◆ signal_eos()

void baz_tcp_source::signal_eos ( )

◆ work()

int baz_tcp_source::work ( int noutput_items,
gr_vector_const_void_star & input_items,
gr_vector_void_star & output_items )

◆ baz_make_tcp_source

BAZ_API baz_tcp_source_sptr baz_make_tcp_source ( size_t itemsize,
const char * host,
unsigned short port,
int buffer_size = 0,
bool verbose = false )
friend

References BAZ_API.


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