CUBRID Engine  latest
client_support.c File Reference
#include "config.h"
#include <stdio.h>
#include <signal.h>
#include <sys/param.h>
#include <syslog.h>
#include <assert.h>
#include "porting.h"
#include "connection_globals.h"
#include "connection_defs.h"
#include "connection_cl.h"
#include "connection_less.h"
#include "connection_list_cl.h"
#include "tcp.h"
#include "transaction_cl.h"
#include "error_manager.h"
#include "client_support.h"
#include "network_interface_cl.h"
#include "network.h"
Include dependency graph for client_support.c:

Go to the source code of this file.

Functions

static void css_internal_server_shutdown (void)
 
static void css_handle_pipe_shutdown (int sig)
 
static void css_set_pipe_signal (void)
 
static int css_test_for_server_errors (CSS_MAP_ENTRY *entry, unsigned int eid)
 
int css_client_init (int sockid, const char *server_name, const char *host_name)
 
unsigned int css_send_request_to_server_with_buffer (char *host, int request, char *arg_buffer, int arg_buffer_size, char *data_buffer, int data_buffer_size)
 
unsigned int css_send_req_to_server (char *host, int request, char *arg_buffer, int arg_buffer_size, char *data_buffer, int data_buffer_size, char *reply_buffer, int reply_size)
 
unsigned int css_send_req_to_server_2_data (char *host, int request, char *arg_buffer, int arg_buffer_size, char *data1_buffer, int data1_buffer_size, char *data2_buffer, int data2_buffer_size, char *reply_buffer, int reply_size)
 
unsigned int css_send_req_to_server_no_reply (char *host, int request, char *arg_buffer, int arg_buffer_size)
 
int css_queue_receive_data_buffer (unsigned int eid, char *buffer, int buffer_size)
 
unsigned int css_send_error_to_server (char *host, unsigned int eid, char *buffer, int buffer_size)
 
unsigned int css_send_data_to_server (char *host, unsigned int eid, char *buffer, int buffer_size)
 
unsigned int css_receive_data_from_server (unsigned int eid, char **buffer, int *size)
 
unsigned int css_receive_data_from_server_with_timeout (unsigned int eid, char **buffer, int *size, int timeout)
 
void css_terminate (bool server_error)
 
void css_cleanup_client_queues (char *host_name)
 
HA_SERVER_STATE css_ha_server_state (void)
 

Variables

static void(* css_Previous_sigpipe_handler )(int sig_no) = NULL
 
int css_Errno = 0
 
CSS_MAP_ENTRYcss_Client_anchor
 

Function Documentation

void css_cleanup_client_queues ( char *  host_name)

Definition at line 675 of file client_support.c.

References css_mapping_entry::conn, css_remove_all_unexpected_packets(), css_return_open_entry(), and NULL.

Referenced by net_cleanup_client_queues().

Here is the caller graph for this function:

static void css_handle_pipe_shutdown ( int  sig)
static
static void css_internal_server_shutdown ( void  )
static

Definition at line 67 of file client_support.c.

Referenced by css_handle_pipe_shutdown().

Here is the caller graph for this function:

unsigned int css_receive_data_from_server_with_timeout ( unsigned int  eid,
char **  buffer,
int *  size,
int  timeout 
)
unsigned int css_send_data_to_server ( char *  host,
unsigned int  eid,
char *  buffer,
int  buffer_size 
)
unsigned int css_send_error_to_server ( char *  host,
unsigned int  eid,
char *  buffer,
int  buffer_size 
)
unsigned int css_send_req_to_server_2_data ( char *  host,
int  request,
char *  arg_buffer,
int  arg_buffer_size,
char *  data1_buffer,
int  data1_buffer_size,
char *  data2_buffer,
int  data2_buffer_size,
char *  reply_buffer,
int  reply_size 
)
unsigned int css_send_req_to_server_no_reply ( char *  host,
int  request,
char *  arg_buffer,
int  arg_buffer_size 
)
unsigned int css_send_request_to_server_with_buffer ( char *  host,
int  request,
char *  arg_buffer,
int  arg_buffer_size,
char *  data_buffer,
int  data_buffer_size 
)
static void css_set_pipe_signal ( void  )
static

Definition at line 114 of file client_support.c.

References css_handle_pipe_shutdown(), css_Previous_sigpipe_handler, NULL, and os_set_signal_handler().

Referenced by css_client_init().

Here is the caller graph for this function:

static int css_test_for_server_errors ( CSS_MAP_ENTRY entry,
unsigned int  eid 
)
static

Definition at line 537 of file client_support.c.

References css_mapping_entry::conn, css_return_queued_error(), CSS_RID_FROM_EID, er_set_area_error(), free_and_init, NO_ERROR, and rc.

Referenced by css_receive_data_from_server_with_timeout().

Here is the caller graph for this function:

Variable Documentation

CSS_MAP_ENTRY* css_Client_anchor

Definition at line 55 of file client_support.c.

void(* css_Previous_sigpipe_handler) (int sig_no) = NULL
static

Definition at line 52 of file client_support.c.

Referenced by css_handle_pipe_shutdown(), css_set_pipe_signal(), and css_terminate().