Policy defining, how peers are selected. More...
#include <senf/Socket/SocketPolicy.hh>
Public Member Functions | |
virtual | ~CommunicationPolicyBase () |
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).
Definition at line 316 of file SocketPolicy.hh.
|
virtual |
Definition at line 32 of file SocketPolicy.cc.