00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef _sctp_server_h
00028 #define _sctp_server_h
00029
00030 #include "ip_addr.h"
00031
00032 struct sctp_gen_info{
00033 int sctp_connections_no;
00034 int sctp_tracked_no;
00035 int sctp_total_connections;
00036 };
00037
00038 int init_sctp(void);
00039 void destroy_sctp(void);
00040 int sctp_check_compiled_sockopts(char* buf, int size);
00041 int sctp_check_support(void);
00042 int sctp_init_sock(struct socket_info* sock_info);
00043 int sctp_rcv_loop(void);
00044 int sctp_msg_send(struct dest_info* dst, char* buf, unsigned len);
00045
00046
00047 void sctp_get_info(struct sctp_gen_info* sinf);
00048
00049 void destroy_sctp(void);
00050
00051 int sctp_setsockopt(int s, int level, int optname,
00052 void* optval, socklen_t optlen, char* err_prefix);
00053
00054 void sctp_con_tracking_flush(void);
00055 #endif