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

#include <blob_to_socket.h>

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

List of all members.

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.

Member Typedef Documentation


Member Function Documentation

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.

Parameters:
protothe protocol "UDP" or "TCP"
addrthe resolvable server address of the UDP socket
portthe resolvable server port of the UDP socket
Returns:
a new blob to socket block

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