FACT++  1.0
void tcpip_set_test_write ( int  conn_id,
int  timeout 
)

Definition at line 651 of file tcpip.c.

References dtq_add_entry(), NET_CONNECTION::last_used, Net_conns, queue_id, tcpip_test_write(), time, NET_CONNECTION::timeout, and NET_CONNECTION::timr_ent.

Referenced by dna_set_test_write().

652 {
653 
654 #if defined(__linux__) && !defined (darwin)
655  tcpip_set_keepalive(Net_conns[conn_id].channel, timeout);
656 #else
657 
658  Net_conns[conn_id].timr_ent = dtq_add_entry( queue_id, timeout,
659  tcpip_test_write, conn_id );
660  Net_conns[conn_id].timeout = timeout;
661  Net_conns[conn_id].last_used = time(NULL);
662 
663 #endif
664 
665 }
static void tcpip_test_write(int conn_id)
Definition: tcpip.c:631
TIMR_ENT * timr_ent
Definition: dim.h:413
DllExp DIM_NOSHARE NET_CONNECTION * Net_conns
Definition: conn_handler.c:32
time_t last_used
Definition: dim.h:414
Warning because the service this data corrsponds to might have been last updated longer ago than Local time
Definition: smartfact.txt:92
TIMR_ENT * dtq_add_entry(int queue_id, int time, void(*user_routine)(), dim_long tag)
Definition: dtq.c:399
static int queue_id
Definition: tcpip.c:93
int timeout
Definition: dim.h:411

+ Here is the call graph for this function:

+ Here is the caller graph for this function: