MySQL 8.0.39
Source Code Documentation
node_connection.h File Reference
#include <stdlib.h>
#include <openssl/ssl.h>
#include "xcom/network/include/network_provider.h"
#include "xcom/xcom_memory.h"
#include "xcom/xcom_proto.h"
#include "xdr_gen/xcom_vp.h"

Go to the source code of this file.

Classes

struct  connection_descriptor
 

Typedefs

typedef enum con_state con_state
 
typedef struct connection_descriptor connection_descriptor
 

Enumerations

enum  con_state { CON_NULL , CON_FD , CON_PROTO }
 

Functions

static connection_descriptornew_connection (int fd, SSL *ssl_fd)
 
static void free_connection (connection_descriptor *&con)
 Free a connection_descriptor created with new_connection. More...
 
static int is_connected (connection_descriptor *con)
 
static int proto_done (connection_descriptor *con)
 
static void set_connected (connection_descriptor *con, con_state val)
 
static void set_protocol_stack (connection_descriptor *con, enum_transport_protocol val)
 

Typedef Documentation

◆ con_state

typedef enum con_state con_state

◆ connection_descriptor

Enumeration Type Documentation

◆ con_state

enum con_state
Enumerator
CON_NULL 
CON_FD 
CON_PROTO 

Function Documentation

◆ free_connection()

static void free_connection ( connection_descriptor *&  con)
inlinestatic

Free a connection_descriptor created with new_connection.

This function will, if the [in] parameter is not nullptr:

  • Free the pointer
  • Set the pointer to nullptr
Parameters
cona pointer to a connection_descriptor.

◆ is_connected()

static int is_connected ( connection_descriptor con)
inlinestatic

◆ new_connection()

static connection_descriptor * new_connection ( int  fd,
SSL *  ssl_fd 
)
inlinestatic

◆ proto_done()

static int proto_done ( connection_descriptor con)
inlinestatic

◆ set_connected()

static void set_connected ( connection_descriptor con,
con_state  val 
)
inlinestatic

◆ set_protocol_stack()

static void set_protocol_stack ( connection_descriptor con,
enum_transport_protocol  val 
)
inlinestatic