FACT++  1.0
static int get_bytes_to_read ( int  conn_id)
static

Definition at line 685 of file tcpip.c.

References count, i, and Net_conns.

Referenced by do_read(), io_sig_handler(), and tcpip_task().

686 {
687  int i, ret, count = 0;
688 
689  for(i = 0; i < 3; i++)
690  {
691  ret = ioctl( Net_conns[conn_id].channel, FIONREAD, &count );
692  if( ret != 0)
693  {
694  count = 0;
695  break;
696  }
697  if(count > 0)
698  {
699  break;
700  }
701  }
702  return(count);
703 }
int i
Definition: db_dim_client.c:21
DllExp DIM_NOSHARE NET_CONNECTION * Net_conns
Definition: conn_handler.c:32
int count
Definition: db_dim_server.c:18

+ Here is the caller graph for this function: