senf::CommunicationPolicyBase Struct Reference
[The Policy Framework]

Policy defining, how peers are selected. More...

#include <senf/Socket/SocketPolicy.hh>

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

List of all members.


Detailed Description

Policy defining, how peers are selected.

The CommunicationPolicy may define two members:

method void listen(FileHandle, unsigned backlog) Switch socket into listening state
method int accept(FileHandle, Address &) Accept a new connection
method int accept(FileHandle) Accept a new connection

The listen member is straight forward. The accept() member must return a new file descriptor (which will be used to create a new SocketHandle of the correct type).

Note:
This Policy only has two meaningful states: ConnectedCommunicationPolicy and UnconnectedCommunicationPolicy. It is probably not sensible to define a new CommunicationPolicy type.
See also:
The Policy Framework

Definition at line 335 of file SocketPolicy.hh.


Public Member Functions

virtual  ~CommunicationPolicyBase ()

Constructor & Destructor Documentation

senf::CommunicationPolicyBase::
~CommunicationPolicyBase ()

Definition at line 41 of file SocketPolicy.cc.


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