senf::ReadPolicyBase Struct Reference

Policy defining the readability. More...

#include <senf/Socket/SocketPolicy.hh>

Inheritance diagram for senf::ReadPolicyBase:

Classes

class  Buffer
 

Public Member Functions

virtual ~ReadPolicyBase ()
 

Detailed Description

Policy defining the readability.

The ReadPolicy defines, whether the socket is readable. It may define the following 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
type Buffer queue buffer type (a boost::iterator_range)
method boost::optional<Buffer> dequeue() return data from rx queue
method void release() return all read buffers to kernel

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).

The second set of members is special: It provides access to the linux specific packet queue API.

See also
The Policy Framework

Definition at line 343 of file SocketPolicy.hh.

Constructor & Destructor Documentation

◆ ~ReadPolicyBase()

senf::ReadPolicyBase::~ReadPolicyBase ( )
virtual

Definition at line 35 of file SocketPolicy.cc.


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