FACT++  1.0
static void tcpip_test_write ( int  conn_id)
static

Definition at line 631 of file tcpip.c.

References dna_test_write(), Net_conns, and time.

Referenced by tcpip_set_test_write().

632 {
633  /* Write to every socket we use, which uses the TCPIP protocol,
634  * which has an established connection (reading), which is currently
635  * not writing data, so we can check if it is still alive.
636  */
637  time_t cur_time;
638 
639  if(strcmp(Net_conns[conn_id].node,"MYNODE"))
640  {
641  cur_time = time(NULL);
642  if( cur_time - Net_conns[conn_id].last_used > Net_conns[conn_id].timeout )
643  {
644  dna_test_write( conn_id );
645  }
646  }
647 }
Definition: dns.c:26
void dna_test_write(int conn_id)
Definition: dna.c:335
DllExp DIM_NOSHARE NET_CONNECTION * Net_conns
Definition: conn_handler.c:32
Warning because the service this data corrsponds to might have been last updated longer ago than Local time
Definition: smartfact.txt:92

+ Here is the call graph for this function:

+ Here is the caller graph for this function: