Chops Net IP
Loading...
Searching...
No Matches
chops::net::error_data Struct Reference

Data provided through an error function callback. More...

#include <error_delivery.hpp>

Public Member Functions

 error_data (const void *iop, std::error_code e)
 

Public Attributes

std::chrono::steady_clock::time_point time_p
 
const void * io_intf_ptr
 
std::error_code err
 

Detailed Description

Data provided through an error function callback.

This struct of data can be passed through a queue or other mechanism for logging or other error analysis purposes.

A basic_io_interface or basic_io_output is not part of the data since the referenced handler is likely to soon go away. Instead, a void pointer of the underlying handler is used. Another reason for not storing a basic_io_interface is that the IO handler type parameterization is no longer needed, so this can be used for both TCP and UDP error data. The pointer address is used for logging purposes only.


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