senf::ReadPolicyBase Struct Reference
[The Policy Framework]

Policy defining the readability. More...

#include <senf/Socket/SocketPolicy.hh>

Inheritance diagram for senf::ReadPolicyBase:
Inheritance graph
[legend]

List of all members.


Detailed Description

Policy defining the readability.

The ReadPolicy defines, whether the socket is readable. It may define two members:

method unsigned read(FileHandle, char * buffer, unsigned size) read data from socket
method unsigned readfrom(FileHandle, char * buffer, unsigned size, Address &) read data from unconnected socket

The second member should only be enabled if the communication policy is UnconnectedCommunicationPolicy (otherwise it does not make sense since the communication partner is fixed) (see AddressingPolicyBase on how to do this).

Note:
This Policy only has two meaningful states: ReadablePolicy and NotReadablePolicy. It probably does not make sense to define new read policy types.
See also:
The Policy Framework

Definition at line 358 of file SocketPolicy.hh.


Public Member Functions

virtual  ~ReadPolicyBase ()

Constructor & Destructor Documentation

senf::ReadPolicyBase::
~ReadPolicyBase ()

Definition at line 44 of file SocketPolicy.cc.


The documentation for this struct was generated from the following files: