Navigation


Changeset 37:cc3c59fe98fe in freeDiameter for freeDiameter/fD.h


Ignore:
Timestamp:
Nov 5, 2009, 2:28:46 PM (15 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Lot of cleanups in peer structure management

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freeDiameter/fD.h

    r36 r37  
    119119        /* Some flags influencing the peer state machine */
    120120        struct {
    121                 unsigned pf_responder   : 1;    /* The local peer is responder on the connection */
     121                unsigned pf_responder   : 1;    /* The peer has been created to handle incoming connection */
    122122               
    123123                unsigned pf_dw_pending  : 1;    /* A DWR message was sent and not answered yet */
     
    125125                unsigned pf_cnx_pb      : 1;    /* The peer was disconnected because of watchdogs; must exchange 3 watchdogs before putting back to normal */
    126126                unsigned pf_reopen_cnt  : 2;    /* remaining DW to be exchanged after re-established connection */
    127                
    128                 /* to be completed */
    129127               
    130128        }                p_flags;
     
    144142        /* Sent requests (for fallback), list of struct sentreq ordered by hbh */
    145143        struct sr_list   p_sr;
     144       
     145        /* Data for transitional states before the peer is in OPEN state */
     146        struct {
     147                struct cnxctx * p_initiator;    /* Connection before CEA is received */
     148                struct cnxctx * p_receiver;     /* Only used in case of election */
     149                pthread_t       p_ini_thr;
     150        };
     151               
    146152       
    147153        /* connection context: socket and related information */
     
    176182        ,FDEVP_CNX_EP_CHANGE
    177183       
    178         /* A new connection has been established (data contains the appropriate info) */
     184        /* A new connection (with a CER) has been received */
    179185        ,FDEVP_CNX_INCOMING
     186       
     187        /* A new connection has been established to the remote peer (event data is the cnxctx object) */
     188        ,FDEVP_CNX_ESTABLISHED
    180189       
    181190        /* The PSM state is expired */
     
    196205                case_str(FDEVP_CNX_EP_CHANGE);          \
    197206                case_str(FDEVP_CNX_INCOMING);           \
     207                case_str(FDEVP_CNX_ESTABLISHED);        \
    198208                case_str(FDEVP_PSM_TIMEOUT);            \
    199209        }                                               \
Note: See TracChangeset for help on using the changeset viewer.