MySQL 8.0.37
Source Code Documentation
IOContext Class Reference

IO Context for network operations. More...

#include <http_client.h>

Classes

class  impl
 

Public Member Functions

 IOContext ()
 
 ~IOContext ()
 
bool dispatch ()
 wait for events to fire and calls handlers. More...
 

Private Attributes

std::unique_ptr< implpImpl_
 

Friends

class HttpClientConnectionBase
 

Detailed Description

IO Context for network operations.

wraps libevent's base

Constructor & Destructor Documentation

◆ IOContext()

IOContext::IOContext ( )

◆ ~IOContext()

IOContext::~IOContext ( )
default

Member Function Documentation

◆ dispatch()

bool IOContext::dispatch ( )

wait for events to fire and calls handlers.

exits if no more pending events

Returns
false if no events were pending nor active, true otherwise
Exceptions
std::runtime_erroron internal, unexpected error

Friends And Related Function Documentation

◆ HttpClientConnectionBase

friend class HttpClientConnectionBase
friend

Member Data Documentation

◆ pImpl_

std::unique_ptr<impl> IOContext::pImpl_
private

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