Changeset 28:3628f7d2ba88 in freeDiameter for freeDiameter/fD.h
- Timestamp:
- Oct 26, 2009, 6:07:24 PM (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
freeDiameter/fD.h
r25 r28 157 157 ,FDEVP_TERMINATE 158 158 159 /* A connection object has received a message. */159 /* A connection object has received a message. (data contains the buffer) */ 160 160 ,FDEVP_CNX_MSG_RECV 161 161 … … 166 166 ,FDEVP_CNX_EP_CHANGE 167 167 168 /* A message was received in the peer*/169 ,FDEVP_ MSG_INCOMING168 /* A new connection has been established (data contains the appropriate info) */ 169 ,FDEVP_CNX_INCOMING 170 170 171 171 /* The PSM state is expired */ … … 185 185 186 186 /* Functions */ 187 int fd_peer_fini();187 int fd_peer_fini(); 188 188 void fd_peer_dump_list(int details); 189 189 void fd_peer_dump(struct fd_peer * peer, int details); 190 int fd_peer_alloc(struct fd_peer ** ptr); 191 int fd_peer_free(struct fd_peer ** ptr); 190 int fd_peer_alloc(struct fd_peer ** ptr); 191 int fd_peer_free(struct fd_peer ** ptr); 192 int fd_peer_handle_newCER( struct msg ** cer, struct cnxctx ** cnx, int tls_done ); 192 193 /* fd_peer_add declared in freeDiameter.h */ 193 194 … … 198 199 199 200 /* Peer state machine */ 200 int fd_psm_start();201 int fd_psm_begin(struct fd_peer * peer );202 int fd_psm_terminate(struct fd_peer * peer );201 int fd_psm_start(); 202 int fd_psm_begin(struct fd_peer * peer ); 203 int fd_psm_terminate(struct fd_peer * peer ); 203 204 void fd_psm_abord(struct fd_peer * peer ); 204 205 205 206 /* Server sockets */ 206 207 void fd_servers_dump(); 207 int fd_servers_start();208 int fd_servers_stop();209 210 /* Connection contexts */208 int fd_servers_start(); 209 int fd_servers_stop(); 210 211 /* Connection contexts -- there are also definitions in cnxctx.h for the relevant files */ 211 212 struct cnxctx * fd_cnx_serv_tcp(uint16_t port, int family, struct fd_endpoint * ep); 212 213 struct cnxctx * fd_cnx_serv_sctp(uint16_t port, struct fd_list * ep_list); 213 int fd_cnx_serv_listen(struct cnxctx * conn);214 int fd_cnx_serv_listen(struct cnxctx * conn); 214 215 struct cnxctx * fd_cnx_serv_accept(struct cnxctx * serv); 215 216 struct cnxctx * fd_cnx_cli_connect_tcp(sSA * sa, socklen_t addrlen); 216 217 struct cnxctx * fd_cnx_cli_connect_sctp(int no_ip6, uint16_t port, struct fd_list * list); 217 char * fd_cnx_getid(struct cnxctx * conn);218 int fd_cnx_start_clear(struct cnxctx * conn, int loop);219 int fd_cnx_handshake(struct cnxctx * conn, int mode, char * priority);220 int fd_cnx_getcred(struct cnxctx * conn, const gnutls_datum_t **cert_list, unsigned int *cert_list_size);221 int fd_cnx_getendpoints(struct cnxctx * conn, struct fd_list * local, struct fd_list * remote);222 char * fd_cnx_getremoteid(struct cnxctx * conn);223 int fd_cnx_receive(struct cnxctx * conn, struct timespec * timeout, unsigned char **buf, size_t * len);224 int fd_cnx_recv_setaltfifo(struct cnxctx * conn, struct fifo * alt_fifo); /* send FDEVP_CNX_MSG_RECV event to the fifo list */225 int fd_cnx_send(struct cnxctx * conn, unsigned char * buf, size_t len);226 void fd_cnx_destroy(struct cnxctx * conn);218 char * fd_cnx_getid(struct cnxctx * conn); 219 int fd_cnx_start_clear(struct cnxctx * conn, int loop); 220 int fd_cnx_handshake(struct cnxctx * conn, int mode, char * priority); 221 int fd_cnx_getcred(struct cnxctx * conn, const gnutls_datum_t **cert_list, unsigned int *cert_list_size); 222 int fd_cnx_getendpoints(struct cnxctx * conn, struct fd_list * local, struct fd_list * remote); 223 char * fd_cnx_getremoteid(struct cnxctx * conn); 224 int fd_cnx_receive(struct cnxctx * conn, struct timespec * timeout, unsigned char **buf, size_t * len); 225 int fd_cnx_recv_setaltfifo(struct cnxctx * conn, struct fifo * alt_fifo); /* send FDEVP_CNX_MSG_RECV event to the fifo list */ 226 int fd_cnx_send(struct cnxctx * conn, unsigned char * buf, size_t len); 227 void fd_cnx_destroy(struct cnxctx * conn); 227 228 228 229
Note: See TracChangeset
for help on using the changeset viewer.