WritePolicy for writeable sockets. More...
#include <senf/Socket/ReadWritePolicy.hh>
Static Public Member Functions | |
template<class SPolicy > | |
static unsigned | write (ClientSocketHandle< SPolicy > &handle, char const *buffer, unsigned size) |
write data to socket More... | |
template<class SPolicy > | |
static unsigned | writeto (ClientSocketHandle< SPolicy > &handle, typename Policy::AddressingPolicy::Address const &addr, char const *buffer, unsigned size) |
write data to socket sending to given peer More... | |
Additional Inherited Members | |
Public Member Functions inherited from senf::WritePolicyBase | |
virtual | ~WritePolicyBase () |
WritePolicy for writeable sockets.
This policy provides support for writable sockets via the standard UNIX write/sendto system calls. The concrete semantics of the write calls depend on the framing policy of the socket.
Definition at line 90 of file ReadWritePolicy.hh.
|
static |
write data to socket
This member is only enabled if the socket uses connected communication. Otherwise the communication partner must be specified explicitly using the sendto call
[in] | handle | socket handle to write data to |
[in] | buffer | address of buffer to send |
[in] | size | number of bytes to write |
|
static |
write data to socket sending to given peer
This member is only enabled if the socket uses unconnected communication. Otherwise no target may be specified since it is implied in the connection.
[in] | handle | socket handle to write data to |
[in] | buffer | address of buffer to send |
[in] | size | number of bytes to write |
[in] | addr | peer to send data to |