11#ifndef INCLUDED_NETWORK_TCP_SINK_H
12#define INCLUDED_NETWORK_TCP_SINK_H
17#define TCPSINKMODE_CLIENT 1
18#define TCPSINKMODE_SERVER 2
41 typedef std::shared_ptr<tcp_sink>
sptr;
47 make(
size_t itemsize,
size_t veclen,
const std::string& host,
int port,
int sinkmode);
This block provides a TCP Sink block that supports both client and server modes.
Definition: tcp_sink.h:39
static sptr make(size_t itemsize, size_t veclen, const std::string &host, int port, int sinkmode)
std::shared_ptr< tcp_sink > sptr
Definition: tcp_sink.h:41
synchronous 1:1 input to output with history
Definition: sync_block.h:26
#define NETWORK_API
Definition: gr-network/include/gnuradio/network/api.h:19
GR_RUNTIME_API size_t itemsize(types::vector_type type)
GNU Radio logging wrapper.
Definition: basic_block.h:29