File heartbeat.c
FileList > connection > heartbeat.c
Go to the source code of this file
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <assert.h>
#include <signal.h>
#include <fcntl.h>
#include <sys/time.h>
#include <sys/ioctl.h>
#include <sys/uio.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include "environment_variable.h"
#include "error_context.hpp"
#include "porting.h"
#include "system_parameter.h"
#include "error_manager.h"
#include "connection_defs.h"
#include "client_support.h"
#include "tcp.h"
#include "release_string.h"
#include "heartbeat.h"
Public Attributes
Public Static Attributes
Public Functions
Public Static Functions
Public Attributes Documentation
variable hb_Pipe_to_master
SOCKET hb_Pipe_to_master;
variable hb_Proc_shutdown
Public Static Attributes Documentation
variable hb_Argv
variable hb_Conn
variable hb_Exec_path
char hb_Exec_path[PATH_MAX];
Public Functions Documentation
function css_receive_heartbeat_data
int css_receive_heartbeat_data (
CSS_CONN_ENTRY * conn,
char * data,
int size
)
function css_receive_heartbeat_request
int css_receive_heartbeat_request (
CSS_CONN_ENTRY * conn,
int * command
)
function css_send_heartbeat_data
int css_send_heartbeat_data (
CSS_CONN_ENTRY * conn,
const char * data,
int size
)
function css_send_heartbeat_request
int css_send_heartbeat_request (
CSS_CONN_ENTRY * conn,
int command
)
function hb_deregister_from_master
int hb_deregister_from_master (
void
)
function hb_make_set_hbp_register
HBP_PROC_REGISTER * hb_make_set_hbp_register (
int type
)
function hb_node_state_string
const char * hb_node_state_string (
HB_NODE_STATE_TYPE nstate
)
function hb_process_init
int hb_process_init (
const char * server_name,
const char * log_path,
HB_PROC_TYPE type
)
function hb_process_term
void hb_process_term (
void
)
function hb_process_type_string
const char * hb_process_type_string (
int ptype
)
function hb_register_to_master
int hb_register_to_master (
CSS_CONN_ENTRY * conn,
int type
)
function hb_set_argv
void hb_set_argv (
char ** argv
)
function hb_set_exec_path
void hb_set_exec_path (
char * exec_path
)
Public Static Functions Documentation
function hb_connect_to_master
static CSS_CONN_ENTRY * hb_connect_to_master (
const char * server_name,
const char * log_path,
HB_PROC_TYPE type
)
function hb_create_master_reader
static int hb_create_master_reader (
void
)
function hb_pack_server_name
static char * hb_pack_server_name (
const char * server_name,
int * name_length,
const char * log_path,
HB_PROC_TYPE type
)
function hb_process_master_request
static int hb_process_master_request (
void
)
function hb_process_master_request_info
static int hb_process_master_request_info (
CSS_CONN_ENTRY * conn
)
function hb_thread_master_reader
static THREAD_RET_T THREAD_CALLING_CONVENTION hb_thread_master_reader (
void * arg
)
function hb_type_to_str
static const char * hb_type_to_str (
HB_PROC_TYPE type
)
The documentation for this class was generated from the following file cubrid/src/connection/heartbeat.c