Policy defining the readability. More...
#include <senf/Socket/SocketPolicy.hh>
Classes | |
class | Buffer |
Public Member Functions | |
virtual | ~ReadPolicyBase () |
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.
Definition at line 343 of file SocketPolicy.hh.
|
virtual |
Definition at line 35 of file SocketPolicy.cc.