GNU Radio 3.6.0 C++ API
gnuradio::extras::socket_to_blob Class Reference

#include <socket_to_blob.h>

Inheritance diagram for gnuradio::extras::socket_to_blob:
gr_sync_block gr_block gr_basic_block gr_msg_accepter gruel::msg_accepter

List of all members.

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.

Member Typedef Documentation


Member Function Documentation

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.

Parameters:
protothe protocol "UDP" or "TCP"
addrthe resolvable interface address of the UDP socket
portthe resolvable interface port of the UDP socket
mtuthe max bytes in an incoming packet, 0 for default
Returns:
a new socket to blob block

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