Changeset 37:cc3c59fe98fe in freeDiameter for freeDiameter/fD.h
- Timestamp:
- Nov 5, 2009, 2:28:46 PM (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
freeDiameter/fD.h
r36 r37 119 119 /* Some flags influencing the peer state machine */ 120 120 struct { 121 unsigned pf_responder : 1; /* The local peer is responder on theconnection */121 unsigned pf_responder : 1; /* The peer has been created to handle incoming connection */ 122 122 123 123 unsigned pf_dw_pending : 1; /* A DWR message was sent and not answered yet */ … … 125 125 unsigned pf_cnx_pb : 1; /* The peer was disconnected because of watchdogs; must exchange 3 watchdogs before putting back to normal */ 126 126 unsigned pf_reopen_cnt : 2; /* remaining DW to be exchanged after re-established connection */ 127 128 /* to be completed */129 127 130 128 } p_flags; … … 144 142 /* Sent requests (for fallback), list of struct sentreq ordered by hbh */ 145 143 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 146 152 147 153 /* connection context: socket and related information */ … … 176 182 ,FDEVP_CNX_EP_CHANGE 177 183 178 /* A new connection has been established (data contains the appropriate info)*/184 /* A new connection (with a CER) has been received */ 179 185 ,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 180 189 181 190 /* The PSM state is expired */ … … 196 205 case_str(FDEVP_CNX_EP_CHANGE); \ 197 206 case_str(FDEVP_CNX_INCOMING); \ 207 case_str(FDEVP_CNX_ESTABLISHED); \ 198 208 case_str(FDEVP_PSM_TIMEOUT); \ 199 209 } \
Note: See TracChangeset
for help on using the changeset viewer.