The Micro C++ Library
|
The Receiver class defines a combination of a Connection and a recv(void*, size_t, bool) method. More...
#include <micxx/traits/Receiver.hxx>
Inherits micxx::traits::Connection.
Inherited by micxx::traits::BiDiConnection.
Public Member Functions | |
virtual int | recv (void *bytes, std::size_t size, bool blocking=true)=0 |
Try to receive up to size number of bytes. |
The Receiver class defines a combination of a Connection and a recv(void*, size_t, bool) method.
virtual int micxx::traits::Receiver::recv | ( | void * | bytes, |
std::size_t | size, | ||
bool | blocking = true |
||
) | [pure virtual] |
Try to receive up to size number of bytes.
bytes | The pointer to the receiving buffer |
size | The number of bytes to be expected to be received |
blocking | If blocking is true , then the call waits until all size bytes were received. Otherwise, it returns as soon as possible. |
0
.