senf::CommunicationPolicyBase Struct Reference

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

#include <senf/Socket/SocketPolicy.hh>

Inheritance diagram for senf::CommunicationPolicyBase:

Public Member Functions

virtual ~CommunicationPolicyBase ()
 

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 316 of file SocketPolicy.hh.

Constructor & Destructor Documentation

◆ ~CommunicationPolicyBase()

senf::CommunicationPolicyBase::~CommunicationPolicyBase ( )
virtual

Definition at line 32 of file SocketPolicy.cc.


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