#include <senf/Socket/ReadWritePolicy.hh>
This policy provides support for readable sockets via the standard UNIX read/recvfrom system calls. The concrete semantics of the read calls depend on the framing policy of the socket.
Definition at line 53 of file ReadWritePolicy.hh.
Static Public Member Functions |
|
static unsigned | read (FileHandle &handle, char *buffer, unsigned size) |
read data from socket |
|
template<class SPolicy > | |
static unsigned | readfrom (ClientSocketHandle< SPolicy > &handle, char *buffer, unsigned size, typename Policy::AddressingPolicy::Address &address) |
read data from socket returning peer address |
unsigned senf::ReadablePolicy:: | ||||
read | ( | FileHandle & | handle, | |
char * | buffer, | |||
unsigned | size | ) | ||
read data from socket
[in] | handle | socket handle to read from |
[in] | buffer | address of buffer to write data to |
[in] | size | size of buffer |
Definition at line 41 of file ReadWritePolicy.cc.
unsigned senf::ReadablePolicy:: | ||||
readfrom | ( | ClientSocketHandle< SPolicy > & | handle, | |
char * | buffer, | |||
unsigned | size, | |||
typename Policy::AddressingPolicy::Address & | address | ) | ||
read data from socket returning peer address
[in] | handle | socket handle to read from |
[in] | buffer | address of buffer to write data to |
[in] | size | size of buffer |
[out] | address | peer address |
Definition at line 46 of file ReadWritePolicy.cti.