ReadPolicy for readable sockets. More...
#include <senf/Socket/ReadWritePolicy.hh>

Static Public Member Functions | |
| static unsigned | read (FileHandle &handle, char *buffer, unsigned size) | 
| read data from socket  More... | |
| 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  More... | |
Additional Inherited Members | |
  Public Member Functions inherited from senf::ReadPolicyBase | |
| virtual | ~ReadPolicyBase () | 
ReadPolicy for readable sockets.
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 45 of file ReadWritePolicy.hh.
      
  | 
  static | 
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 33 of file ReadWritePolicy.cc.
      
  | 
  static | 
read data from socket returning peer address
| [in] | handle | socket handle to read from | 
| [in] | buffer | address of buffer to writedata to | 
| [in] | size | size of buffer | 
| [out] | address | peer address |