Navigation


Changeset 649:5e5d8152c229 in freeDiameter for freeDiameter/fD.h


Ignore:
Timestamp:
Jan 5, 2011 5:13:34 PM (2 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Message:

Implemented fd_msg_send_timeout to close #10. Not tested yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freeDiameter/fD.h

    r447 r649  
    118118/* Sentinel for the sent requests list */ 
    119119struct sr_list { 
    120         struct fd_list  srs; 
    121         pthread_mutex_t mtx; 
     120        struct fd_list  srs; /* requests ordered by hop-by-hop id */ 
     121        struct fd_list  exp; /* requests that have a timeout set, ordered by timeout */ 
     122        pthread_mutex_t mtx; /* mutex to protect these lists */ 
     123        pthread_cond_t  cnd; /* cond var used by the thread that handles timeouts */ 
     124        pthread_t       thr; /* the thread that handles timeouts (and calls the anscb) */ 
    122125}; 
    123126 
     
    290293int fd_p_sr_store(struct sr_list * srlist, struct msg **req, uint32_t *hbhloc, uint32_t hbh_restore); 
    291294int fd_p_sr_fetch(struct sr_list * srlist, uint32_t hbh, struct msg **req); 
     295int fd_p_sr_start(struct sr_list * srlist); 
     296int fd_p_sr_stop(struct sr_list * srlist); 
    292297void fd_p_sr_failover(struct sr_list * srlist); 
    293298 
Note: See TracChangeset for help on using the changeset viewer.