Changeset 22:0b3b46da2c12 in freeDiameter for freeDiameter/fD.h
- Timestamp:
- Oct 19, 2009, 6:43:09 PM (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
freeDiameter/fD.h
r21 r22 157 157 ,FDEVP_TERMINATE 158 158 159 /* A connection object has received a message -- stored in event->data */ 160 ,FDEVP_CNX_MSG_RECV 161 159 162 /* A message was received in the peer */ 160 163 ,FDEVP_MSG_INCOMING … … 162 165 /* The PSM state is expired */ 163 166 ,FDEVP_PSM_TIMEOUT 167 164 168 }; 165 169 const char * fd_pev_str(int event); … … 196 200 void fd_servers_dump(); 197 201 int fd_servers_start(); 198 voidfd_servers_stop();202 int fd_servers_stop(); 199 203 200 204 /* Connection contexts */ 201 struct cnxctx * fd_cnx_init(int sock, int proto); 205 struct cnxctx * fd_cnx_serv_tcp(uint16_t port, int family, struct fd_endpoint * ep); 206 struct cnxctx * fd_cnx_serv_sctp(uint16_t port, struct fd_list * ep_list); 207 int fd_cnx_serv_listen(struct cnxctx * conn); 208 struct cnxctx * fd_cnx_serv_accept(struct cnxctx * serv); 209 struct cnxctx * fd_cnx_cli_connect(int proto, const sSA * sa, socklen_t addrlen); 210 char * fd_cnx_getid(struct cnxctx * conn); 202 211 int fd_cnx_start_clear(struct cnxctx * conn); 203 int fd_cnx_handshake(struct cnxctx * conn, int mode );212 int fd_cnx_handshake(struct cnxctx * conn, int mode, char * priority); 204 213 int fd_cnx_getcred(struct cnxctx * conn, const gnutls_datum_t **cert_list, unsigned int *cert_list_size); 205 int fd_cnx_getendpoints(struct cnxctx * conn, struct fd_list * senti);214 int fd_cnx_getendpoints(struct cnxctx * conn, struct fd_list * local, struct fd_list * remote); 206 215 char * fd_cnx_getremoteid(struct cnxctx * conn); 207 216 int fd_cnx_receive(struct cnxctx * conn, struct timespec * timeout, unsigned char **buf, size_t * len); 217 int fd_cnx_recv_setaltfifo(struct cnxctx * conn, struct fifo * alt_fifo); /* send FDEVP_CNX_MSG_RECV event to the fifo list */ 208 218 int fd_cnx_send(struct cnxctx * conn, unsigned char * buf, size_t len); 209 219 void fd_cnx_destroy(struct cnxctx * conn); 210 220 221 /* TCP */ 222 int fd_tcp_create_bind_server( int * sock, sSA * sa, socklen_t salen ); 223 int fd_tcp_listen( int sock ); 224 211 225 /* SCTP */ 212 226 #ifndef DISABLE_SCTP 213 int fd_sctp_create_bind_server( int * socket, uint16_t port ); 227 int fd_sctp_create_bind_server( int * sock, struct fd_list * list, uint16_t port ); 228 int fd_sctp_listen( int sock ); 229 214 230 int fd_sctp_get_str_info( int socket, int *in, int *out ); 215 231
Note: See TracChangeset
for help on using the changeset viewer.