Browse code

core: added file sctp core interface

Daniel-Constantin Mierla authored on 25/05/2013 07:35:22
Showing 2 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,59 @@
0
+/**
1
+ * $Id$
2
+ *
3
+ * Copyright (C) 2013 Daniel-Constantin Mierla (asipto.com)
4
+ *
5
+ * This file is part of Kamailio, a free SIP server.
6
+ *
7
+ * Permission to use, copy, modify, and distribute this software for any
8
+ * purpose with or without fee is hereby granted, provided that the above
9
+ * copyright notice and this permission notice appear in all copies.
10
+ *
11
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18
+ */
19
+
20
+#include "sctp_core.h"
21
+
22
+int sctp_core_msg_send(struct dest_info* dst, char* buf, unsigned len)
23
+{
24
+	return 0;
25
+}
26
+
27
+void sctp_core_destroy(void)
28
+{
29
+}
30
+
31
+int sctp_core_init_sock(struct socket_info* sock_info)
32
+{
33
+	return 0;
34
+}
35
+
36
+int sctp_core_rcv_loop(void)
37
+{
38
+	return 0;
39
+}
40
+
41
+void sctp_core_init_options(void)
42
+{
43
+}
44
+
45
+int sctp_core_check_compiled_sockopts(char* buf, int size)
46
+{
47
+	return 0;
48
+}
49
+
50
+int sctp_core_check_support(void)
51
+{
52
+	return 0;
53
+}
54
+
55
+int sctp_core_init(void)
56
+{
57
+	return 0;
58
+}
0 59
new file mode 100644
... ...
@@ -0,0 +1,42 @@
0
+/**
1
+ * $Id$
2
+ *
3
+ * Copyright (C) 2013 Daniel-Constantin Mierla (asipto.com)
4
+ *
5
+ * This file is part of Kamailio, a free SIP server.
6
+ *
7
+ * Permission to use, copy, modify, and distribute this software for any
8
+ * purpose with or without fee is hereby granted, provided that the above
9
+ * copyright notice and this permission notice appear in all copies.
10
+ *
11
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18
+ */
19
+
20
+#ifndef __sctp_core_h__
21
+#define __sctp_core_h__
22
+
23
+#include "ip_addr.h"
24
+
25
+int sctp_core_init(void);
26
+
27
+void sctp_core_destroy(void);
28
+
29
+int sctp_core_init_sock(struct socket_info* sock_info);
30
+
31
+void sctp_core_init_options(void);
32
+
33
+int sctp_core_check_compiled_sockopts(char* buf, int size);
34
+
35
+int sctp_core_check_support(void);
36
+
37
+int sctp_core_rcv_loop(void);
38
+
39
+int sctp_core_msg_send(struct dest_info* dst, char* buf, unsigned len);
40
+
41
+#endif