4 * Copyright (C) 2008 iptelorg GmbH
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
24 * 2008-08-07 initial version (andrei)
27 #ifndef _sctp_server_h
28 #define _sctp_server_h
33 int sctp_connections_no;
35 int sctp_total_connections;
40 int sctp_check_compiled_sockopts(char* buf, int size);
41 int sctp_check_support();
42 int sctp_init_sock(struct socket_info* sock_info);
44 int sctp_msg_send(struct dest_info* dst, char* buf, unsigned len);
46 /* generic sctp information (stats a.s.o) */
47 void sctp_get_info(struct sctp_gen_info* sinf);
51 int sctp_setsockopt(int s, int level, int optname,
52 void* optval, socklen_t optlen, char* err_prefix);
54 void sctp_con_tracking_flush();
55 #endif /* _sctp_server_h */