17 #ifndef HH_SENF_PPI_SocketSink_ 18 #define HH_SENF_PPI_SocketSink_ 1 70 template <
class HandleType>
117 int sendtoandfrom(
int sock,
const void *data,
size_t dataLen,
const in_addr *dst,
int port,
const in_addr *src);
120 unsigned int protocolId_;
146 int sendtoandfrom(
int sock,
const void *data,
size_t dataLen,
const in6_addr *dst,
int port,
const in6_addr *src);
149 unsigned int protocolId_;
221 template <
class Writer=ConnectedDgramWriter>
227 typedef typename Writer::Handle
Handle;
255 void handle(Handle
const & handle);
299 template <
class Writer=ConnectedDgramWriter>
305 typedef typename Writer::Handle
Handle;
333 void handle(Handle
const & handle);
343 memset(
this, 0,
sizeof(*
this));
345 void dump(std::ostream & os)
const {
346 os <<
"sent " << sent <<
", " 347 <<
"error " << error <<
".";
360 void checkThrottle();
senf::PacketSocketHandle Handle
PacketSocketHandle Handle
Connectors public header.
senf::ClientSocketHandle< senf::MakeSocketPolicy< senf::WriteablePolicy, senf::DatagramFramingPolicy, senf::ConnectedCommunicationPolicy >::policy > Handle
Handle type supported by this writer.
bool operator()(Handle &handle, Packet const &packet)
Write packet to handle.
Writer::Handle Handle
Handle type requested by writer.
senf::ClientSocketHandle< senf::MakeSocketPolicy< senf::WriteablePolicy, senf::DatagramFramingPolicy >::policy > Handle
Handle type supported by this writer.
Writer::Handle Handle
Handle type requested by writer.
Output module writing data to a FileHandle using the provided Writer. If using the default ConnectedD...
connector::ActiveInput< typename Writer::PacketType > input
Input connector from which data is received.
#define SENF_PPI_MODULE(name)
Define PPI Module.
FileHandle based I/O read/write event.
ProtocolClientSocketHandle< PacketSocketProtocol > PacketSocketHandle
connector::PassiveInput< typename Writer::PacketType > input
Input connector from which data is received.
Writer sending data with ClientSocketHandle::writeto()
Writer for module::ActiveSocketSink / module::PassiveSocketSink.
senf::ClientSocketHandle< senf::MakeSocketPolicy< senf::WriteablePolicy, senf::DatagramFramingPolicy >::policy > Handle
Handle type supported by this writer.
SPolicy::AddressingPolicy::Address Address
ConcretePacket< EthernetPacketType > EthernetPacket
::phoenix::function< detail::clear > const clear
Output module writing data to a FileHandle using the provided Writer. If using the default ConnectedD...
EthernetPacket PacketType
void dump(std::ostream &os) const