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

asynchronous read operation. More...

#include <async_operation.hpp>

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

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 = Function<void (const std::error_code&, const char*, size_t, const Endpoint&, bool), 16>
 handler invoked on completion, reporting the endpoint the data are coming from.
 

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 Proactor>
struct join::BasicAsyncRead< Protocol, Proactor >

asynchronous read operation.

Member Typedef Documentation

◆ Endpoint

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

◆ Read

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

handler invoked on completion.

◆ ReadFrom

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

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

Member Data Documentation

◆ iov

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

read scatter gather entry.

◆ msg

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

read message header.

◆ op

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

operation submitted to the proactor.

◆ readFromHandler

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

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

◆ readHandler

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

handler invoked on completion.


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