Writer sending data with ClientSocketHandle::writeto() More...
#include <senf/PPI/SocketSink.hh>
Public Types | |
typedef HandleType | Handle |
typedef Packet | PacketType |
Public Member Functions | |
TargetDgramWriter () | |
Create TargetDgramWriter with unset target address. More... | |
TargetDgramWriter (typename Handle::Address const &target) | |
Create TargetDgramWriter sending to target. More... | |
Handle::Address | target () const |
Get current target address. More... | |
void | target (typename Handle::Address const &target) |
Set target address. More... | |
bool | operator() (Handle &handle, Packet const &packet) |
Write packet to handle. More... | |
Writer sending data with ClientSocketHandle::writeto()
This writer will send out data using ClientSocketHandle::writeto(). The target address can be specified in the writer constructor and can be adjusted at any time.
If no target address is set, incoming data will be silently dropped.
Definition at line 71 of file SocketSink.hh.
typedef HandleType senf::ppi::TargetDgramWriter< HandleType >::Handle |
Definition at line 74 of file SocketSink.hh.
typedef Packet senf::ppi::TargetDgramWriter< HandleType >::PacketType |
Definition at line 75 of file SocketSink.hh.
senf::ppi::TargetDgramWriter< HandleType >::TargetDgramWriter | ( | ) |
Create TargetDgramWriter with unset target address.
senf::ppi::TargetDgramWriter< HandleType >::TargetDgramWriter | ( | typename Handle::Address const & | target | ) |
Create TargetDgramWriter sending to target.
bool senf::ppi::TargetDgramWriter< HandleType >::operator() | ( | Handle & | handle, |
Packet const & | packet | ||
) |
Write packet to handle.
Write the complete packet as a datagram to handle.
[in] | handle | Handle to write data to |
[in] | packet | Packet to write |
Handle::Address senf::ppi::TargetDgramWriter< HandleType >::target | ( | ) | const |
Get current target address.
void senf::ppi::TargetDgramWriter< HandleType >::target | ( | typename Handle::Address const & | target | ) |
Set target address.