Changeset 706:4ffbc9f1e922 in freeDiameter for libfdcore/cnxctx.h
- Timestamp:
- Feb 9, 2011, 3:26:58 PM (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdcore/cnxctx.h
r662 r706 48 48 int cc_family; /* AF_INET or AF_INET6 (mixed) */ 49 49 int cc_proto; /* IPPROTO_TCP or IPPROTO_SCTP */ 50 uint32_t cc_status; /* True if the object is being destroyed: we don't send events anymore */ 50 51 uint32_t cc_state; /* True if the object is being destroyed: we don't send events anymore. access with fd_cnx_getstate() */ 51 52 #define CC_STATUS_CLOSING 1 52 53 #define CC_STATUS_ERROR 2 … … 59 60 struct fifo * cc_incoming; /* FIFO queue of events received on the connection, FDEVP_CNX_* */ 60 61 struct fifo * cc_alt; /* alternate fifo to send FDEVP_CNX_* events to. */ 61 #define Target_Queue(cnx) ((cnx)->cc_alt ?: (cnx)->cc_incoming)62 62 63 63 /* If cc_tls == true */ 64 64 struct { 65 char *cn; /* If not NULL, remote certif will be checked to match this Common Name */65 DiamId_t cn; /* If not NULL, remote certif will be checked to match this Common Name */ 66 66 int mode; /* GNUTLS_CLIENT / GNUTLS_SERVER */ 67 67 gnutls_session_t session; /* Session object (stream #0 in case of SCTP) */ … … 84 84 85 85 void fd_cnx_markerror(struct cnxctx * conn); 86 uint32_t fd_cnx_getstate(struct cnxctx * conn); 87 int fd_cnx_teststate(struct cnxctx * conn, uint32_t flag); 88 void fd_cnx_addstate(struct cnxctx * conn, uint32_t orstate); 89 void fd_cnx_setstate(struct cnxctx * conn, uint32_t abstate); 90 struct fifo * fd_cnx_target_queue(struct cnxctx * conn); 91 86 92 87 93 /* Socket */ … … 109 115 int fd_sctp_get_remote_ep(int sock, struct fd_list * list); 110 116 int fd_sctp_get_str_info( int sock, uint16_t *in, uint16_t *out, sSS *primary ); 111 int fd_sctp_sendstr( int sock, uint16_t strid, uint8_t * buf, size_t len, uint32_t * cc_closing);112 int fd_sctp_recvmeta( int sock, uint16_t * strid, uint8_t ** buf, size_t * len, int *event, uint32_t * cc_closing);117 int fd_sctp_sendstr(struct cnxctx * conn, uint16_t strid, uint8_t * buf, size_t len); 118 int fd_sctp_recvmeta(struct cnxctx * conn, uint16_t * strid, uint8_t ** buf, size_t * len, int *event); 113 119 114 120 /* TLS over SCTP (multi-stream) */
Note: See TracChangeset
for help on using the changeset viewer.