MySQL 8.4.2
Source Code Documentation
http::cno Namespace Reference

Namespaces

namespace  anonymous_namespace{error_code.cc}
 

Classes

class  BufferSequence
 
class  CnoInterface
 
class  Sequence
 

Functions

HTTP_COMMON_EXPORT void callback_init (cno_connection_t *cno, CnoInterface *)
 
template<typename T >
std::string to_string (const T &str)
 Convert CNO buffers to strings. More...
 
CnoInterfaceget_cno (void *cb_data)
 
int on_writev (void *cb_data, const struct cno_buffer_t *buffer, size_t count)
 
int on_close (void *cb_data)
 
int on_stream_start (void *cb_data, uint32_t id)
 
int on_stream_end (void *cb_data, uint32_t id, uint32_t, enum CNO_PEER_KIND)
 
int on_flow_increase (void *, uint32_t)
 
int on_message_head (void *cb_data, uint32_t id, const struct cno_message_t *msg)
 
int on_message_push (void *, uint32_t, const struct cno_message_t *, uint32_t)
 
int on_message_data (void *cb_data, uint32_t id, const char *data, size_t size)
 
int on_message_tail (void *cb_data, uint32_t id, const struct cno_tail_t *tail)
 
int on_frame (void *, const struct cno_frame_t *)
 
int on_frame_send (void *, const struct cno_frame_t *)
 
int on_pong (void *, const char[8])
 
int on_settings (void *)
 
int on_upgrade (void *, uint32_t)
 

Variables

cno_vtable_t g_cno_vtable
 

Function Documentation

◆ callback_init()

void http::cno::callback_init ( cno_connection_t *  cno,
CnoInterface icno 
)

◆ get_cno()

CnoInterface * http::cno::get_cno ( void *  cb_data)

◆ on_close()

int http::cno::on_close ( void *  cb_data)

◆ on_flow_increase()

int http::cno::on_flow_increase ( void *  ,
uint32_t   
)

◆ on_frame()

int http::cno::on_frame ( void *  ,
const struct cno_frame_t *   
)

◆ on_frame_send()

int http::cno::on_frame_send ( void *  ,
const struct cno_frame_t *   
)

◆ on_message_data()

int http::cno::on_message_data ( void *  cb_data,
uint32_t  id,
const char *  data,
size_t  size 
)

◆ on_message_head()

int http::cno::on_message_head ( void *  cb_data,
uint32_t  id,
const struct cno_message_t *  msg 
)

◆ on_message_push()

int http::cno::on_message_push ( void *  ,
uint32_t  ,
const struct cno_message_t *  ,
uint32_t   
)

◆ on_message_tail()

int http::cno::on_message_tail ( void *  cb_data,
uint32_t  id,
const struct cno_tail_t *  tail 
)

◆ on_pong()

int http::cno::on_pong ( void *  ,
const char  [8] 
)

◆ on_settings()

int http::cno::on_settings ( void *  )

◆ on_stream_end()

int http::cno::on_stream_end ( void *  cb_data,
uint32_t  id,
uint32_t  ,
enum  CNO_PEER_KIND 
)

◆ on_stream_start()

int http::cno::on_stream_start ( void *  cb_data,
uint32_t  id 
)

◆ on_upgrade()

int http::cno::on_upgrade ( void *  ,
uint32_t   
)

◆ on_writev()

int http::cno::on_writev ( void *  cb_data,
const struct cno_buffer_t *  buffer,
size_t  count 
)

◆ to_string()

template<typename T >
std::string http::cno::to_string ( const T &  str)

Convert CNO buffers to strings.

This function handles: cno_buffer_t, cno_buffer_dyn_t. If other CNO types are needed the function should be overloaded/specialized.

Variable Documentation

◆ g_cno_vtable

cno_vtable_t http::cno::g_cno_vtable
Initial value:
int on_stream_start(void *cb_data, uint32_t id)
Definition: callback_init.cc:43
int on_close(void *cb_data)
Definition: callback_init.cc:41
int on_writev(void *cb_data, const struct cno_buffer_t *buffer, size_t count)
Definition: callback_init.cc:37
int on_flow_increase(void *, uint32_t)
Definition: callback_init.cc:52
int on_message_head(void *cb_data, uint32_t id, const struct cno_message_t *msg)
Definition: callback_init.cc:54
int on_message_data(void *cb_data, uint32_t id, const char *data, size_t size)
Definition: callback_init.cc:67
int on_upgrade(void *, uint32_t)
Definition: callback_init.cc:83
int on_frame(void *, const struct cno_frame_t *)
Definition: callback_init.cc:75
int on_pong(void *, const char[8])
Definition: callback_init.cc:79
int on_stream_end(void *cb_data, uint32_t id, uint32_t, enum CNO_PEER_KIND)
Definition: callback_init.cc:47
int on_message_tail(void *cb_data, uint32_t id, const struct cno_tail_t *tail)
Definition: callback_init.cc:71
int on_settings(void *)
Definition: callback_init.cc:81
int on_message_push(void *, uint32_t, const struct cno_message_t *, uint32_t)
Definition: callback_init.cc:62
int on_frame_send(void *, const struct cno_frame_t *)
Definition: callback_init.cc:77