Changeset 706:4ffbc9f1e922 in freeDiameter for libfdcore/fdcore-internal.h
- Timestamp:
- Feb 9, 2011, 3:26:58 PM (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdcore/fdcore-internal.h
r662 r706 138 138 char *p_dbgorig; 139 139 140 /* State of the peer, and its lock */ 141 enum peer_state p_state; 142 pthread_mutex_t p_state_mtx; 143 140 144 /* Chaining in peers sublists */ 141 145 struct fd_list p_actives; /* list of peers in the STATE_OPEN state -- used by routing */ … … 147 151 unsigned pf_responder : 1; /* The peer has been created to handle incoming connection */ 148 152 unsigned pf_delete : 1; /* Destroy the peer when the connection is terminated */ 153 unsigned pf_localterm : 1; /* If the latest DPR/DPA was initiated from this side */ 149 154 150 155 unsigned pf_dw_pending : 1; /* A DWR message was sent and not answered yet */ … … 192 197 #define CHECK_PEER( _p ) \ 193 198 (((_p) != NULL) && (((struct fd_peer *)(_p))->p_eyec == EYEC_PEER)) 199 200 #define fd_peer_getstate(peer) fd_peer_get_state((struct peer_hdr *)(peer)) 201 194 202 195 203 /* Events codespace for struct fd_peer->p_events */ … … 308 316 int fd_p_dp_handle(struct msg ** msg, int req, struct fd_peer * peer); 309 317 int fd_p_dp_initiate(struct fd_peer * peer, char * reason); 318 int fd_p_dp_newdelay(struct fd_peer * peer); 310 319 311 320 /* Active peers -- routing process should only ever take the read lock, the write lock is managed by PSMs */ … … 327 336 struct cnxctx * fd_cnx_cli_connect_sctp(int no_ip6, uint16_t port, struct fd_list * list); 328 337 int fd_cnx_start_clear(struct cnxctx * conn, int loop); 329 void fd_cnx_sethostname(struct cnxctx * conn, char *hn);338 void fd_cnx_sethostname(struct cnxctx * conn, DiamId_t hn); 330 339 int fd_cnx_handshake(struct cnxctx * conn, int mode, char * priority, void * alt_creds); 331 340 char * fd_cnx_getid(struct cnxctx * conn); 332 341 int fd_cnx_getproto(struct cnxctx * conn); 333 342 int fd_cnx_getTLS(struct cnxctx * conn); 343 int fd_cnx_isMultichan(struct cnxctx * conn); 334 344 int fd_cnx_getcred(struct cnxctx * conn, const gnutls_datum_t **cert_list, unsigned int *cert_list_size); 335 345 int fd_cnx_get_local_eps(struct fd_list * list); … … 343 353 /* Flags for the fd_cnx_send function : */ 344 354 #define FD_CNX_ORDERED (1 << 0) /* All messages sent with this flag set will be delivered in the same order. No guarantee on other messages */ 345 #define FD_CNX_BROADCAST (1 << 1) /* The message is sent over all stream pairs, in case of SCTP. No effect on TCP */346 355 347 356 #endif /* _FDCORE_INTERNAL_H */
Note: See TracChangeset
for help on using the changeset viewer.