GNU Radio 3.6.0 C++ API
|
#include <blob_to_socket.h>
Public Types | |
typedef boost::shared_ptr < blob_to_socket > | sptr |
Static Public Member Functions | |
static sptr | make (const std::string &proto, const std::string &addr, const std::string &port) |
Make a socket to message blob block. |
static sptr gnuradio::extras::blob_to_socket::make | ( | const std::string & | proto, |
const std::string & | addr, | ||
const std::string & | port | ||
) | [static] |
Make a socket to message blob block.
The UDP socket will be connected to the server address and port. The TCP socket will be connected to the server address and port. The remote server socket should be activated before this block.
This block reads incoming messages from the queue, and sends the blob contents into a UDP socket. Non-blob message values will be ignored by the block. An empty blob (length 0 bytes) tells the work to exit.
proto | the protocol "UDP" or "TCP" |
addr | the resolvable server address of the UDP socket |
port | the resolvable server port of the UDP socket |