senf::WritePolicyBase Struct Reference
[The Policy Framework]

Policy defining the writability. More...

#include <senf/Socket/SocketPolicy.hh>

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

List of all members.


Detailed Description

Policy defining the writability.

The WritePolicy defines, whether the socket is writable. It may define two members:

method unsigned write(FileHandle, char * buffer, unsigned size) read data from socket
method unsigned writeto(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: WritablePolicy and NotWritablePolicy. It probably does not make sense to define new write policy types.
See also:
The Policy Framework

Definition at line 381 of file SocketPolicy.hh.


Public Member Functions

virtual  ~WritePolicyBase ()

Constructor & Destructor Documentation

senf::WritePolicyBase::
~WritePolicyBase ()

Definition at line 47 of file SocketPolicy.cc.


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