GNU Radio 3.6.0 C++ API
|
#include <socket_to_blob.h>
Public Types | |
typedef boost::shared_ptr < socket_to_blob > | sptr |
Static Public Member Functions | |
static sptr | make (const std::string &proto, const std::string &addr, const std::string &port, const size_t mtu=0) |
Make a message blob to socket block. |
static sptr gnuradio::extras::socket_to_blob::make | ( | const std::string & | proto, |
const std::string & | addr, | ||
const std::string & | port, | ||
const size_t | mtu = 0 |
||
) | [static] |
Make a message blob to socket block.
The UDP socket will be bound to the specified addr/port. The TCP socket will listen on addr/port, and accept the first connection.
This block reads packets from a UDP socket, and posts blob messages to "blob" subscriber group.
proto | the protocol "UDP" or "TCP" |
addr | the resolvable interface address of the UDP socket |
port | the resolvable interface port of the UDP socket |
mtu | the max bytes in an incoming packet, 0 for default |