'connection_support'에 해당되는 글 1건

  1. 2009/07/03 2.3.8.8. connection_support
sw2009/07/03 10:42

함수정의

static int css_vector_send ()

파라미터

int fd

struct iovec *vec[]

int *len

int bytes_written

호출자

-       connection_support:: css_send_io_vector

메모

-       iovec의 개수 만큼의 데이터를 연속해서 전송한다.

-       윈도우에는 writev 함수가 없으므로 직접 구현



함수정의

static int css_net_send2 ()

파라미터

CSS_CONN_ENTRY * conn

const char *buff1

int len1

const char *buff2

int len2

호출자

-       connection_support:: css_send_data

-       connection_support:: css_send_oob

메모

-       두개의 데이터를 4개의 iov에 담아서 한번에 전송



함수정의

static int css_net_send3 ()

파라미터

CSS_CONN_ENTRY * conn

const char *buff1

int len1

const char *buff2

int len2

const char *buff3

int len3

호출자

-       connection_support:: css_send_oob_request_with_data_buffer

-       connection_support:: css_send_request_with_data_buffer

메모

-       3개의 데이터를 6개의 iov에 담아서 한번에 전송



함수정의

static int css_net_send4 ()

파라미터

CSS_CONN_ENTRY * conn

const char *buff1

int len1

const char *buff2

int len2

const char *buff3

int len3

const char *buff4

int len4

호출자

-       connection_support:: css_send_two_data

메모

-       4개의 데이터를 8개의 iov에 담아서 한번에 전송



함수정의

static int css_net_send5 ()

파라미터

CSS_CONN_ENTRY * conn

const char *buff1

int len1

const char *buff2

int len2

const char *buff3

int len3

const char *buff4

int len4

const char *buff5

int len5

호출자

-       connection_support:: css_send_oob_request_with_data_buffer

-       connection_support:: css_send_req_with_2_buffers

메모

-       5개의 데이터를 10개의 iov에 담아서 한번에 전송



함수정의

static int css_net_send6 ()

파라미터

CSS_CONN_ENTRY * conn

const char *buff1

int len1

const char *buff2

int len2

const char *buff3

int len3

const char *buff4

int len4

const char *buff5

int len5

const char *buff6

int len6

호출자

-       connection_support:: css_send_three_data

메모

-       6개의 데이터를 12개의 iov에 담아서 한번에 전송



함수정의

static int css_net_send7 ()

파라미터

CSS_CONN_ENTRY * conn

const char *buff1

int len1

const char *buff2

int len2

const char *buff3

int len3

const char *buff4

int len4

const char *buff5

int len5

const char *buff6

int len6

const char *buff7

int len7

호출자

-       connection_support:: css_send_req_with_3_buffers

메모

-       7개의 데이터를 14개의 iov에 담아서 한번에 전송



함수정의

static int css_net_send8 ()

파라미터

CSS_CONN_ENTRY * conn

const char *buff1

 int len1

const char *buff2

int len2

const char *buff3

int len3

const char *buff4

int len4

const char *buff5

int len5

const char *buff6

int len6

const char *buff7

int len7

const char *buff8

int len8

호출자

-       connection_support:: css_send_four_data

메모

-       8개의 데이터를 16개의 iov에 담아서 한번에 전송



함수정의

static int css_sprintf_conn_infoids ()

파라미터

int fd

const char **client_user_name

const char **client_host_name,

int *client_pid

호출자

-       connection_support::css_set_networking_error

메모

-       현재 프로세스를 사용하고 있는 시스템의 호스트이름, 프로세스아이디등을 알아낸다.



함수정의

static int css_writen ()

파라미터

int fd

char *ptr

int nbytes

호출자

-       connection_support:: css_vector_send

메모

-       fd nbytes 만큼 *ptr을 보낸다.



함수정의

static void css_set_io_vector ()

파라미터

struct iovec *vec1_p

struct iovec *vec2_p

const char *buff

int len

int *templen

호출자

-       connection_support:: css_net_send

-       connection_support:: css_net_send2

-       connection_support:: css_net_send3

-       connection_support:: css_net_send4

-       connection_support:: css_net_send5

-       connection_support:: css_net_send6

-       connection_support:: css_net_send7

-       connection_support:: css_net_send8

메모

-       len vec1_p buff vec2_p에 셋팅한다.



함수정의

static int css_send_io_vector ()

파라미터

CSS_CONN_ENTRY * conn

struct iovec *vec_p

int total_len

int vector_length

호출자

-       connection_support:: css_net_send

-       connection_support:: css_net_send2

-       connection_support:: css_net_send3

-       connection_support:: css_net_send4

-       connection_support:: css_net_send5

-       connection_support:: css_net_send6

-       connection_support:: css_net_send7

-       connection_support:: css_net_send8

메모

-       iovec 데이터를 전부 전송한다.



함수정의

static void css_set_net_header ()

파라미터

NET_HEADER * header_p

int type

short function_code

int request_id

int buffer_size

int transaction_id

int db_error

호출자

-       connection_support:: css_send_data

-       connection_support:: css_send_error

-       connection_support:: css_send_oob

-       connection_support:: css_send_oob_request_with_data_buffer

-       connection_support:: css_send_req_with_2_buffers

-       connection_support:: css_send_req_with_3_buffers

-       connection_support:: css_send_request_with_data_buffer

메모

-       NET_HEADER의 데이터 셋팅



Posted by redef

댓글을 달아 주세요