CUBRID Engine  latest
connection_less.c File Reference
#include "config.h"
#include <stdio.h>
#include <string.h>
#include "connection_cl.h"
#include "connection_less.h"
Include dependency graph for connection_less.c:

Go to the source code of this file.

Functions

static unsigned short css_make_entry_id (CSS_MAP_ENTRY *anchor)
 
static CSS_MAP_ENTRYcss_get_queued_entry (char *host, CSS_MAP_ENTRY *anchor)
 
unsigned int css_make_eid (unsigned short entry_id, unsigned short rid)
 
CSS_MAP_ENTRYcss_return_entry_from_eid (unsigned int eid, CSS_MAP_ENTRY *anchor)
 
CSS_MAP_ENTRYcss_queue_connection (CSS_CONN_ENTRY *conn, const char *host, CSS_MAP_ENTRY **anchor)
 
void css_remove_queued_connection_by_entry (CSS_MAP_ENTRY *entry, CSS_MAP_ENTRY **anchor)
 
CSS_MAP_ENTRYcss_return_open_entry (char *host, CSS_MAP_ENTRY **anchor)
 
CSS_MAP_ENTRYcss_return_entry_from_conn (CSS_CONN_ENTRY *conn, CSS_MAP_ENTRY *anchor)
 
unsigned int css_return_eid_from_conn (CSS_CONN_ENTRY *conn, CSS_MAP_ENTRY **anchor, unsigned short rid)
 

Function Documentation

static CSS_MAP_ENTRY * css_get_queued_entry ( char *  host,
CSS_MAP_ENTRY anchor 
)
static

Definition at line 162 of file connection_less.c.

References css_mapping_entry::key, css_mapping_entry::next, and NULL.

Referenced by css_return_open_entry().

Here is the caller graph for this function:

static unsigned int css_make_eid ( unsigned short  entry_id,
unsigned short  rid 
)
static unsigned short css_make_entry_id ( CSS_MAP_ENTRY anchor)
static

Definition at line 82 of file connection_less.c.

References ARG_FILE_LINE, ER_ERROR_SEVERITY, er_set(), ERR_CSS_ENTRY_OVERRUN, css_mapping_entry::id, and css_mapping_entry::next.

Referenced by css_queue_connection().

Here is the caller graph for this function:

CSS_MAP_ENTRY* css_queue_connection ( CSS_CONN_ENTRY conn,
const char *  host,
CSS_MAP_ENTRY **  anchor 
)

Definition at line 119 of file connection_less.c.

References css_mapping_entry::conn, css_make_entry_id(), css_mapping_entry::id, css_mapping_entry::key, css_mapping_entry::next, NULL, and strlen.

Referenced by css_client_init(), and css_return_eid_from_conn().

Here is the caller graph for this function:

unsigned int css_return_eid_from_conn ( CSS_CONN_ENTRY conn,
CSS_MAP_ENTRY **  anchor,
unsigned short  rid 
)

Definition at line 274 of file connection_less.c.

References css_make_eid(), css_queue_connection(), css_return_entry_from_conn(), css_mapping_entry::id, and NULL.

Referenced by css_internal_request_handler().

Here is the caller graph for this function:

CSS_MAP_ENTRY* css_return_entry_from_conn ( CSS_CONN_ENTRY conn,
CSS_MAP_ENTRY anchor 
)

Definition at line 248 of file connection_less.c.

References css_mapping_entry::conn, css_mapping_entry::next, and NULL.

Referenced by css_handle_pipe_shutdown(), and css_return_eid_from_conn().

Here is the caller graph for this function:

CSS_MAP_ENTRY* css_return_entry_from_eid ( unsigned int  eid,
CSS_MAP_ENTRY anchor 
)

Definition at line 59 of file connection_less.c.

References CSS_ENTRYID_FROM_EID, css_mapping_entry::id, css_mapping_entry::next, and NULL.

Referenced by css_queue_receive_data_buffer(), and css_receive_data_from_server_with_timeout().

Here is the caller graph for this function: