Reader for module::ActiveSocketSource. More...
#include <senf/PPI/SocketSource.hh>
Public Types | |
typedef Packet | PacketType |
typedef senf::ClientSocketHandle< senf::MakeSocketPolicy< senf::ReadablePolicy, senf::DatagramFramingPolicy >::policy > | Handle |
Handle type supported by this reader. More... | |
Public Member Functions | |
Packet | operator() (Handle &handle) |
Read packet from handle. More... | |
Reader for module::ActiveSocketSource.
This read helper will read a datagram from a datagram socket. This datagram will then be interpreted as a packet of type Packet as defined in the packet library. Packet defaults to DataPacket (type DataPacketType), which will place the data uninterpreted into a packet data structure.
Definition at line 52 of file SocketSource.hh.
typedef senf::ClientSocketHandle< senf::MakeSocketPolicy< senf::ReadablePolicy, senf::DatagramFramingPolicy >::policy > senf::ppi::DgramReader< Packet, MaxSize >::Handle |
Handle type supported by this reader.
Definition at line 58 of file SocketSource.hh.
typedef Packet senf::ppi::DgramReader< Packet, MaxSize >::PacketType |
Definition at line 55 of file SocketSource.hh.
Packet senf::ppi::DgramReader< Packet, MaxSize >::operator() | ( | Handle & | handle | ) |
Read packet from handle.
Read a datagram from handle and interpret is as packet of type Packet
.
[in] | handle | Handle to read data from |