#include <senf/Socket/SocketPolicy.hh>
The ReadPolicy defines, whether the socket is readable. It may define two 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 |
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).
Definition at line 358 of file SocketPolicy.hh.
Public Member Functions |
|
virtual | ~ReadPolicyBase () |
senf::ReadPolicyBase:: | ||||
~ReadPolicyBase | () | |||
Definition at line 44 of file SocketPolicy.cc.