FACT++  1.0
static int list_to_fds ( fd_set *  fds)
static

Definition at line 535 of file tcpip.c.

References NET_CONNECTION::channel, Curr_N_Conns, Dna_conns, i, and Net_conns.

Referenced by io_sig_handler(), and tcpip_task().

536 {
537  int i;
538  int found = 0;
539 
540  DISABLE_AST
541 #ifdef __linux__
542  if(fds) {}
543  poll_create();
544 #else
545  FD_ZERO( fds ) ;
546 #endif
547  for( i = 1; i < Curr_N_Conns; i++ )
548  {
549 #ifdef __linux__
550  Pollfds[i].fd = -1;
551 #endif
552  if( Dna_conns[i].busy )
553  {
554  if(Net_conns[i].channel)
555  {
556  found = 1;
557 #ifdef __linux__
558  Pollfds[i].fd = Net_conns[i].channel;
559 #else
560  FD_SET( Net_conns[i].channel, fds );
561 #endif
562 
563  }
564  }
565  }
566  ENABLE_AST
567  return(found);
568 }
DllExp DIM_NOSHARE int Curr_N_Conns
Definition: conn_handler.c:33
int i
Definition: db_dim_client.c:21
DllExp DIM_NOSHARE NET_CONNECTION * Net_conns
Definition: conn_handler.c:32
int channel
Definition: dim.h:398
DllExp DIM_NOSHARE DNA_CONNECTION * Dna_conns
Definition: conn_handler.c:31

+ Here is the caller graph for this function: