The Micro C++ Library
micxx::traits::Sender Class Reference

The Sender class defines a combination of a connection and a send(const void*, size_t, bool) method. More...

#include <micxx/traits/Sender.hxx>

Inherits micxx::traits::Connection.

Inherited by micxx::traits::BiDiConnection.

List of all members.

Public Member Functions

virtual int send (const void *bytes, size_t size, bool blocking=true)=0
 Try to send up to size number of bytes.

Detailed Description

The Sender class defines a combination of a connection and a send(const void*, size_t, bool) method.

Author:
Norbert Klose
Date:
November, 2011

Member Function Documentation

virtual int micxx::traits::Sender::send ( const void *  bytes,
size_t  size,
bool  blocking = true 
) [pure virtual]

Try to send up to size number of bytes.

Parameters:
bytesThe pointer to the sending buffer
sizeThe number of bytes to be expected to be sent
blockingIf blocking is true, then the call waits until all size bytes were sent. Otherwise, it returns as soon as possible.
Returns:
The number of bytes sent. If the connection has been closed, the return value is 0.

Implemented in micxx::SSLClientSocket, micxx::SSLProtocol, and micxx::StreamSocket.


The documentation for this class was generated from the following file: