baz_tcp_sink
gr::sync_block
baz_tcp_sink.h
size_t size_t baz_tcp_sink::d_itemsize d_itemsize baz_tcp_sink::d_itemsize
int int baz_tcp_sink::d_socket d_socket baz_tcp_sink::d_socket
bool bool baz_tcp_sink::d_connected d_connected baz_tcp_sink::d_connected
gr::thread::mutex gr::thread::mutex baz_tcp_sink::d_mutex d_mutex baz_tcp_sink::d_mutex
gr::msg_queue::sptr gr::msg_queue::sptr baz_tcp_sink::d_status_queue d_status_queue baz_tcp_sink::d_status_queue
bool bool baz_tcp_sink::d_blocking d_blocking baz_tcp_sink::d_blocking
bool bool baz_tcp_sink::d_auto_reconnect d_auto_reconnect baz_tcp_sink::d_auto_reconnect
bool bool baz_tcp_sink::d_verbose d_verbose baz_tcp_sink::d_verbose
std::string std::string baz_tcp_sink::d_last_host d_last_host baz_tcp_sink::d_last_host
unsigned short unsigned short baz_tcp_sink::d_last_port d_last_port baz_tcp_sink::d_last_port
BAZ_API baz_tcp_sink_sptr BAZ_API baz_tcp_sink_sptr baz_make_tcp_sink (size_t itemsize, const char *host, unsigned short port, bool blocking, bool auto_reconnect, bool verbose) baz_make_tcp_sink baz_tcp_sink::baz_make_tcp_sink size_t itemsize const char * host unsigned short port bool blocking bool auto_reconnect bool verbose
baz_tcp_sink::baz_tcp_sink
(size_t itemsize, const char *host, unsigned short port, bool blocking, bool auto_reconnect, bool verbose)
baz_tcp_sink
baz_tcp_sink::baz_tcp_sink
size_t itemsize
const char * host
unsigned short port
bool blocking
bool auto_reconnect
bool verbose

TCP Sink Constructor.

itemsize

The size (in bytes) of the item datatype

host

The name or IP address of the receiving host; use NULL or None for no connection

port

Destination port to connect to on receiving host

bool bool baz_tcp_sink::create () create baz_tcp_sink::create
void void baz_tcp_sink::allocate () allocate baz_tcp_sink::allocate
void void baz_tcp_sink::destroy () destroy baz_tcp_sink::destroy
void void baz_tcp_sink::_disconnect () _disconnect baz_tcp_sink::_disconnect
baz_tcp_sink::~baz_tcp_sink
()
~baz_tcp_sink
baz_tcp_sink::~baz_tcp_sink
bool bool baz_tcp_sink::connect (const char *host, unsigned short port) connect baz_tcp_sink::connect const char * host unsigned short port

Change the connection to a new destination.

host

The name or IP address of the receiving host; use NULL or None to break the connection without closing

port

Destination port to connect to on receiving host

Calls disconnect() to terminate any current connection first.
void void baz_tcp_sink::disconnect () disconnect baz_tcp_sink::disconnect

Send zero-length packet (if eof is requested) then stop sending.

Zero-byte packets can be interpreted as EOF by gr_udp_source. Note that disconnect occurs automatically when the sink is destroyed, but not when its top_block stops.

void void baz_tcp_sink::set_status_msgq (gr::msg_queue::sptr queue) set_status_msgq baz_tcp_sink::set_status_msgq gr::msg_queue::sptr queue
int int baz_tcp_sink::send_data (int type, const char *data, int length) send_data baz_tcp_sink::send_data int type const char * data int length
int int baz_tcp_sink::work (int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items) work baz_tcp_sink::work int noutput_items gr_vector_const_void_star & input_items gr_vector_void_star & output_items

Write stream to an TCP socket.

itemsize

The size (in bytes) of the item datatype

host

The name or IP address of the receiving host; use NULL or None for no connection

port

Destination port to connect to on receiving host

baz_tcp_sink
gr::sync_block
baz_tcp_sink
gr::sync_block
- baz_tcp_sink
  _disconnect
- baz_tcp_sink
  allocate
- baz_tcp_sink
  baz_make_tcp_sink
- baz_tcp_sink
  baz_tcp_sink
- baz_tcp_sink
  connect
- baz_tcp_sink
  create
- baz_tcp_sink
  d_auto_reconnect
- baz_tcp_sink
  d_blocking
- baz_tcp_sink
  d_connected
- baz_tcp_sink
  d_itemsize
- baz_tcp_sink
  d_last_host
- baz_tcp_sink
  d_last_port
- baz_tcp_sink
  d_mutex
- baz_tcp_sink
  d_socket
- baz_tcp_sink
  d_status_queue
- baz_tcp_sink
  d_verbose
- baz_tcp_sink
  destroy
- baz_tcp_sink
  disconnect
- baz_tcp_sink
  send_data
- baz_tcp_sink
  set_status_msgq
- baz_tcp_sink
  work
- baz_tcp_sink
  ~baz_tcp_sink