join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
join::BasicAsyncRead< Protocol, ProactorType > Struct Template Reference

asynchronous read operation. More...

#include <async_operation.hpp>

Collaboration diagram for join::BasicAsyncRead< Protocol, ProactorType >:

Public Types

using Endpoint = typename Protocol::Endpoint
 
using Read = Function<void (const std::error_code&, const char*, size_t, bool), 16>
 handler invoked on completion.
 
using ReadFrom
 handler invoked on completion, reporting the endpoint the data are coming from and the control messages.
 

Public Attributes

IoOperation op = {}
 operation submitted to the proactor.
 
Read readHandler
 handler invoked on completion.
 
ReadFrom readFromHandler
 handler invoked on completion, reporting the endpoint the data are coming from.
 
msghdr msg = {}
 read message header.
 
iovec iov = {}
 read scatter gather entry.
 

Detailed Description

template<class Protocol, class ProactorType>
struct join::BasicAsyncRead< Protocol, ProactorType >

asynchronous read operation.

Member Typedef Documentation

◆ Endpoint

template<class Protocol , class ProactorType >
using join::BasicAsyncRead< Protocol, ProactorType >::Endpoint = typename Protocol::Endpoint

◆ Read

template<class Protocol , class ProactorType >
using join::BasicAsyncRead< Protocol, ProactorType >::Read = Function<void (const std::error_code&, const char*, size_t, bool), 16>

handler invoked on completion.

◆ ReadFrom

template<class Protocol , class ProactorType >
using join::BasicAsyncRead< Protocol, ProactorType >::ReadFrom
Initial value:
Function<void (const std::error_code&, const char*, size_t, const Endpoint&, const char*, size_t, bool),
16>
typename Protocol::Endpoint Endpoint
Definition async_operation.hpp:90

handler invoked on completion, reporting the endpoint the data are coming from and the control messages.

Member Data Documentation

◆ iov

template<class Protocol , class ProactorType >
iovec join::BasicAsyncRead< Protocol, ProactorType >::iov = {}

read scatter gather entry.

◆ msg

template<class Protocol , class ProactorType >
msghdr join::BasicAsyncRead< Protocol, ProactorType >::msg = {}

read message header.

◆ op

template<class Protocol , class ProactorType >
IoOperation join::BasicAsyncRead< Protocol, ProactorType >::op = {}

operation submitted to the proactor.

◆ readFromHandler

template<class Protocol , class ProactorType >
ReadFrom join::BasicAsyncRead< Protocol, ProactorType >::readFromHandler

handler invoked on completion, reporting the endpoint the data are coming from.

◆ readHandler

template<class Protocol , class ProactorType >
Read join::BasicAsyncRead< Protocol, ProactorType >::readHandler

handler invoked on completion.


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