comparison include/freeDiameter/libfdcore.h @ 1214:76ac4bb75f0e

Merged with latest proposed version
author Sebastien Decugis <sdecugis@freediameter.net>
date Mon, 17 Jun 2013 10:11:57 +0800
parents e1ced4db7f67 90d1222a65a8
children 33ad82ffbdde
comparison
equal deleted inserted replaced
1188:e1ced4db7f67 1214:76ac4bb75f0e
133 uint16_t cnf_port; /* the local port for legacy Diameter (default: 3868) in host byte order */ 133 uint16_t cnf_port; /* the local port for legacy Diameter (default: 3868) in host byte order */
134 uint16_t cnf_port_tls; /* the local port for Diameter/TLS (default: 5658) in host byte order */ 134 uint16_t cnf_port_tls; /* the local port for Diameter/TLS (default: 5658) in host byte order */
135 uint16_t cnf_port_3436; /* Open an additional server port to listen to old TLS/SCTP clients (RFC3436, freeDiameter versions < 1.2.0) */ 135 uint16_t cnf_port_3436; /* Open an additional server port to listen to old TLS/SCTP clients (RFC3436, freeDiameter versions < 1.2.0) */
136 uint16_t cnf_sctp_str; /* default max number of streams for SCTP associations (def: 30) */ 136 uint16_t cnf_sctp_str; /* default max number of streams for SCTP associations (def: 30) */
137 struct fd_list cnf_endpoints; /* the local endpoints to bind the server to. list of struct fd_endpoint. default is empty (bind all). After servers are started, this is the actual list of endpoints including port information. */ 137 struct fd_list cnf_endpoints; /* the local endpoints to bind the server to. list of struct fd_endpoint. default is empty (bind all). After servers are started, this is the actual list of endpoints including port information. */
138 int cnf_thr_srv; /* Number of threads per servers handling the connection state machines */
138 struct fd_list cnf_apps; /* Applications locally supported (except relay, see flags). Use fd_disp_app_support to add one. list of struct fd_app. */ 139 struct fd_list cnf_apps; /* Applications locally supported (except relay, see flags). Use fd_disp_app_support to add one. list of struct fd_app. */
139 uint16_t cnf_dispthr; /* Number of dispatch threads to create */ 140 uint16_t cnf_dispthr; /* Number of dispatch threads to create */
140 struct { 141 struct {
141 unsigned no_fwd : 1; /* the peer does not relay messages (0xffffff app id) */ 142 unsigned no_fwd : 1; /* the peer does not relay messages (0xffffff app id) */
142 unsigned no_ip4 : 1; /* disable IP */ 143 unsigned no_ip4 : 1; /* disable IP */
813 void *data; 814 void *data;
814 }; 815 };
815 816
816 /* Daemon's codespace: 1000->1999 (1500->1999 defined in fdcore-internal.h) */ 817 /* Daemon's codespace: 1000->1999 (1500->1999 defined in fdcore-internal.h) */
817 enum { 818 enum {
818 FDEV_TERMINATE = 1000 /* request to terminate */ 819 FDEV_TERMINATE_INT= 1000 /* request to terminate. DO NOT USE. Use fd_core_shutdown() instead. */
819 ,FDEV_TRIGGER /* Trigger available for extensions. size is sizeof(int), data is int * */ 820 ,FDEV_TRIGGER /* Trigger available for extensions. size is sizeof(int), data is int * */
820 }; 821 };
821 822
822 int fd_event_send(struct fifo *queue, int code, size_t datasz, void * data); 823 int fd_event_send(struct fifo *queue, int code, size_t datasz, void * data);
823 int fd_event_get(struct fifo *queue, int * code, size_t * datasz, void ** data); 824 int fd_event_get(struct fifo *queue, int * code, size_t * datasz, void ** data);
824 int fd_event_timedget(struct fifo *queue, struct timespec * timeout, int timeoutcode, int * code, size_t * datasz, void ** data); 825 int fd_event_timedget(struct fifo *queue, struct timespec * timeout, int timeoutcode, int * code, size_t * datasz, void ** data);
1047 - {peer} points to the peer structure. 1048 - {peer} points to the peer structure.
1048 - {other} is NULL. 1049 - {other} is NULL.
1049 - {permsgdata} is always NULL for this hook. 1050 - {permsgdata} is always NULL for this hook.
1050 */ 1051 */
1051 1052
1052 #define HOOK_PEER_LAST HOOK_PEER_CONNECT_SUCCESS 1053 #define HOOK_LAST HOOK_PEER_CONNECT_SUCCESS
1053 }; 1054 };
1054 1055
1055 1056
1056 /* Type of the {permsgdata} pointer. It is up to each extension to define its own structure. This is opaque for the framework. */ 1057 /* Type of the {permsgdata} pointer. It is up to each extension to define its own structure. This is opaque for the framework. */
1057 struct fd_hook_permsgdata; 1058 struct fd_hook_permsgdata;
"Welcome to our mercurial repository"