MeVisLab Toolbox Reference
|
Abstract base class for an asynchronous channel supporting read and write of binary data. More...
#include <Socket.h>
Public Types | |
using | CompletionHandler = std::function<void(const ErrorCode&, const std::size_t )> |
Public Member Functions | |
virtual | ~Socket ()=default |
virtual bool | is_valid () const =0 |
virtual void | async_read (void *buffer, const std::size_t buffer_size, const CompletionHandler &handler)=0 |
virtual void | async_write (const void *buffer, const std::size_t buffer_size, const CompletionHandler &handler)=0 |
virtual void | close ()=0 |
Abstract base class for an asynchronous channel supporting read and write of binary data.
This interface is used by the networking socket implementations to abstract protocols and transport layer security.
For more information have a look at asio::TcpSocket and asio::TlsSocket.
|
virtualdefault |
|
pure virtual |
Implemented in asio::TcpSocket, and asio::TlsSocket.
|
pure virtual |
Implemented in asio::TcpSocket, and asio::TlsSocket.
Implemented in asio::TcpSocket, and asio::TlsSocket.
Implemented in asio::TcpSocket, and asio::TlsSocket.