MySQL 8.0.40
Source Code Documentation
http_common.h File Reference
#include "mysqlrouter/http_common_export.h"
#include <event2/util.h>
#include <bitset>
#include <ctime>
#include <functional>
#include <memory>
#include <stdexcept>
#include <string>
#include <system_error>
#include <vector>
#include "my_compiler.h"
#include "my_io.h"
#include "my_macros.h"
#include "mysql/harness/net_ts/impl/socket_constants.h"
#include "mysql/harness/tls_context.h"

Go to the source code of this file.

Classes

class  Event
 libevent global state management More...
 
class  EventBase
 Main event registration and dispatch engine More...
 
class  EventBuffer
 Enables bufforing of I/O for a socket. More...
 

Namespaces

namespace  EventFlags
 Flags that represents which I/O events should be monitored.
 
namespace  EventFlags::Pos
 
namespace  EventBufferOptionsFlags
 Flags that represents different bufferevent options.
 
namespace  EventBufferOptionsFlags::Pos
 

Typedefs

using EventFlags::type = int
 
using EventFlags::pos_type = unsigned
 
using EventFlags::Bitset = std::bitset< Pos::_LAST+1 >
 
using EventBaseSocket = evutil_socket_t
 
using EventBufferOptionsFlags::type = int
 
using EventBufferOptionsFlags::pos_type = unsigned
 
using EventBufferOptionsFlags::Bitset = std::bitset< Pos::_LAST+1 >
 

Variables

constexpr pos_type EventFlags::Pos::Timeout = 0
 
constexpr pos_type EventFlags::Pos::Read = 1
 
constexpr pos_type EventFlags::Pos::Write = 2
 
constexpr pos_type EventFlags::Pos::Signal = 3
 
constexpr pos_type EventFlags::Pos::_LAST = Signal
 
constexpr type EventFlags::Timeout {1 << Pos::Timeout}
 
constexpr type EventFlags::Read {1 << Pos::Read}
 
constexpr type EventFlags::Write {1 << Pos::Write}
 
constexpr type EventFlags::Signal {1 << Pos::Signal}
 
const int kEventBaseInvalidSocket = INVALID_SOCKET
 
constexpr pos_type EventBufferOptionsFlags::Pos::CloseOnFree = 0
 
constexpr pos_type EventBufferOptionsFlags::Pos::ThreadSafe = 1
 
constexpr pos_type EventBufferOptionsFlags::Pos::DeferCallbacks = 2
 
constexpr pos_type EventBufferOptionsFlags::Pos::UnlockCallbacks = 3
 
constexpr pos_type EventBufferOptionsFlags::Pos::_LAST = UnlockCallbacks
 
constexpr type EventBufferOptionsFlags::CloseOnFree {1 << Pos::CloseOnFree}
 
constexpr type EventBufferOptionsFlags::ThreadSafe {1 << Pos::ThreadSafe}
 
constexpr type EventBufferOptionsFlags::DeferCallbacks {1 << Pos::DeferCallbacks}
 
constexpr type EventBufferOptionsFlags::UnlockCallbacks {1 << Pos::UnlockCallbacks}
 

Typedef Documentation

◆ EventBaseSocket

using EventBaseSocket = evutil_socket_t

Variable Documentation

◆ kEventBaseInvalidSocket

const int kEventBaseInvalidSocket = INVALID_SOCKET