#include <senf/Socket/ReadWritePolicy.hh>
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 98 of file ReadWritePolicy.hh.
Static Public Member Functions |
|
template<class SPolicy > | |
static unsigned | write (ClientSocketHandle< SPolicy > &handle, char const *buffer, unsigned size) |
write data to socket |
|
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 |
unsigned senf::WriteablePolicy:: | ||||
write | ( | ClientSocketHandle< SPolicy > & | handle, | |
char const * | buffer, | |||
unsigned | size | ) | ||
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 |
Definition at line 62 of file ReadWritePolicy.cti.
unsigned senf::WriteablePolicy:: | ||||
writeto | ( | ClientSocketHandle< SPolicy > & | handle, | |
typename Policy::AddressingPolicy::Address const & | addr, | |||
char const * | buffer, | |||
unsigned | size | ) | ||
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 |
Definition at line 79 of file ReadWritePolicy.cti.