FACT++  1.0
int tcpip_write ( int  conn_id,
char *  buffer,
int  size 
)

Definition at line 1389 of file tcpip.c.

References DIM_ERROR, DIMTCPWRRTY, dna_report_error(), Net_conns, size, and writesock.

Referenced by dna_write_bytes(), and web_write().

1390 {
1391  /* Do a (synchronous) write to conn_id.
1392  */
1393  int wrote;
1394 
1395  wrote = (int)writesock( Net_conns[conn_id].channel, buffer, (size_t)size, 0 );
1396  if( wrote == -1 ) {
1397 /*
1398  Net_conns[conn_id].read_rout( conn_id, -1, 0 );
1399 */
1400  dna_report_error(conn_id, 0,
1401  "Writing (blocking) to", DIM_ERROR, DIMTCPWRRTY);
1402  return(0);
1403  }
1404  return(wrote);
1405 }
#define DIMTCPWRRTY
Definition: dim_common.h:294
DllExp DIM_NOSHARE NET_CONNECTION * Net_conns
Definition: conn_handler.c:32
#define writesock(a, b, c, d)
Definition: tcpip.c:42
void dna_report_error(int conn_id, int code, char *routine_name, int severity, int errcode)
Definition: dna.c:903
int buffer[BUFFSIZE]
Definition: db_dim_client.c:14
int size
Definition: db_dim_server.c:17

+ Here is the call graph for this function:

+ Here is the caller graph for this function: