• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Data Structures
  • Files
  • Directories
  • File List
  • Globals

sctp_server.h

00001 /* 
00002  * $Id$
00003  * 
00004  * Copyright (C) 2008 iptelorg GmbH
00005  *
00006  * Permission to use, copy, modify, and distribute this software for any
00007  * purpose with or without fee is hereby granted, provided that the above
00008  * copyright notice and this permission notice appear in all copies.
00009  *
00010  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
00011  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
00012  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
00013  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
00014  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
00015  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
00016  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
00017  */
00018 /* 
00019  * sctp one to many 
00020  */
00021 /*
00022  * History:
00023  * --------
00024  *  2008-08-07  initial version (andrei)
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 /* generic sctp information (stats a.s.o) */
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 /* _sctp_server_h */

Generated on Tue May 22 2012 13:10:14 for SIP Router by  doxygen 1.7.1