Definition at line 134 of file dna.c.
References buff, DNA_CONNECTION::buffer, DNA_CONNECTION::curr_buffer, DNA_CONNECTION::curr_size, DIM_ERROR, DIMTCPRDERR, Dna_conns, dna_report_error(), dna_start_read(), is_header(), RD_DATA, RD_HDR, DNA_CONNECTION::read_ast, read_data(), READ_HEADER_SIZE, size, STA_DISC, DNA_CONNECTION::state, tcpip_failure(), Tcpip_max_io_data_read, and tcpip_start_read().
138 register int read_size, next_size;
162 read_size = ((next_size -
size) > max_io_data) ?
163 max_io_data : next_size -
size;
171 if(errno == ENOTSOCK)
185 switch(dna_connp->
state)
192 next_size = vtohl(dna_connp->
buffer[1]);
static void ast_read_h(int conn_id, int status, int size)
int Tcpip_max_io_data_read
static void read_data(int conn_id)
int tcpip_start_read(int conn_id, char *buffer, int size, void(*ast_routine)())
void dna_report_error(int conn_id, int code, char *routine_name, int severity, int errcode)
static int is_header(int conn_id)
DllExp DIM_NOSHARE DNA_CONNECTION * Dna_conns
int dna_start_read(int conn_id, int size)
int tcpip_failure(int code)