Browse code

core, lib, modules: restructured source code tree

- new folder src/ to hold the source code for main project applications
- main.c is in src/
- all core files are subfolder are in src/core/
- modules are in src/modules/
- libs are in src/lib/
- application Makefiles are in src/
- application binary is built in src/ (src/kamailio)

Daniel-Constantin Mierla authored on 07/12/2016 11:03:51
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,41 +0,0 @@
1
-/* 
2
- * Copyright (C) 2010 iptelorg GmbH
3
- *
4
- * Permission to use, copy, modify, and distribute this software for any
5
- * purpose with or without fee is hereby granted, provided that the above
6
- * copyright notice and this permission notice appear in all copies.
7
- *
8
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15
- */
16
-/** internal Kamailio core :: tcp send functions (use with care).
17
- * @file tcp_int_send.h
18
- * @ingroup core
19
- */
20
-/*
21
- * History:
22
- * --------
23
- *  2010-03-23  initial version (andrei)
24
-*/
25
-
26
-#ifndef __tcp_int_send_h
27
-#define __tcp_int_send_h
28
-
29
-#include "tcp_conn.h"
30
-
31
-int tcpconn_send_unsafe(int fd, struct tcp_connection *c,
32
-						const char* buf, unsigned len, snd_flags_t send_flags);
33
-
34
-/* direct non-blocking, unsafe (assumes locked) send on a tcp connection */
35
-int _tcpconn_write_nb(int fd, struct tcp_connection* c,
36
-									const char* buf, int len);
37
-
38
-
39
-#endif /*__tcp_int_send_h*/
40
-
41
-/* vi: set ts=4 sw=4 tw=79:ai:cindent: */
Browse code

core: Modify doxygen, remove history, remove SVN IDs, change "ser" and "sip-router" to "KAMAILIO"

Olle E. Johansson authored on 16/01/2015 16:38:46
Showing 1 changed files
... ...
@@ -1,6 +1,4 @@
1 1
 /* 
2
- * $Id$
3
- * 
4 2
  * Copyright (C) 2010 iptelorg GmbH
5 3
  *
6 4
  * Permission to use, copy, modify, and distribute this software for any
... ...
@@ -15,8 +13,9 @@
15 13
  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 14
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 15
  */
18
-/** internal tcp send functions (use with care).
16
+/** internal Kamailio core :: tcp send functions (use with care).
19 17
  * @file tcp_int_send.h
18
+ * @ingroup core
20 19
  */
21 20
 /*
22 21
  * History:
Browse code

tcp: change tls send callback interface

Instead of 2 different tls send callbacks (with a 3rd one needed),
switch to a different model: 1 tls callback that is supposed to
replace the passed buffer with a tls processed version of it.
This simplifies the tls code and more importantly doesn't require
that the tls send code has very detailed knowledge about the tcp
state machine. Some of the saved complexity moved from the tls
module to the tcp code, but at least this way on changes there's
only one place to update.
The tls callbacks for reading and sending are now very different:
while the send callback has become now more of an encoder
callback, the read callback should still perform the tcp read by
itself. While this is not very consistent it does saves unneeded
memory copies.

Andrei Pelinescu-Onciul authored on 23/06/2010 21:17:15
Showing 1 changed files
... ...
@@ -29,20 +29,12 @@
29 29
 
30 30
 #include "tcp_conn.h"
31 31
 
32
-int tcpconn_do_send(int fd, struct tcp_connection* c,
33
-							char* buf, unsigned len,
34
-							snd_flags_t send_flags, long* resp, int locked);
35
-
36
-int tcpconn_1st_send(int fd, struct tcp_connection* c,
37
-							char* buf, unsigned len,
38
-							snd_flags_t send_flags, long* resp, int locked);
39
-
40 32
 int tcpconn_send_unsafe(int fd, struct tcp_connection *c,
41
-						char* buf, unsigned len, snd_flags_t send_flags);
33
+						const char* buf, unsigned len, snd_flags_t send_flags);
42 34
 
43 35
 /* direct non-blocking, unsafe (assumes locked) send on a tcp connection */
44 36
 int _tcpconn_write_nb(int fd, struct tcp_connection* c,
45
-									char* buf, int len);
37
+									const char* buf, int len);
46 38
 
47 39
 
48 40
 #endif /*__tcp_int_send_h*/
Browse code

tcp: new tls hooks interface and async tls changes

- new tls hooks interface that better accommodates tls async use.
Changed read() (takes an extra flags parameter now), removed
blocking_write() and fix_read_con(), added do_send() and
fst_send() (both of them handle snd_flags now and might return a
command that should be sent to tcp_main).
- more tcp send functions (tcpconn_1st_send(),
tcpconn_send_unsafe()) and more send functions exported
(tls_int_send.h) for use from the tls module.
- split tcp_read() into tcp_read() and tcp_read_data() and
exported tcp_read_data() (tcp_read.h).
- support for repeating a tcp_read() if indicated
(RD_CONN_REPEAT_READ), needed for tls.

Andrei Pelinescu-Onciul authored on 20/05/2010 14:00:29
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,50 @@
1
+/* 
2
+ * $Id$
3
+ * 
4
+ * Copyright (C) 2010 iptelorg GmbH
5
+ *
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.
9
+ *
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.
17
+ */
18
+/** internal tcp send functions (use with care).
19
+ * @file tcp_int_send.h
20
+ */
21
+/*
22
+ * History:
23
+ * --------
24
+ *  2010-03-23  initial version (andrei)
25
+*/
26
+
27
+#ifndef __tcp_int_send_h
28
+#define __tcp_int_send_h
29
+
30
+#include "tcp_conn.h"
31
+
32
+int tcpconn_do_send(int fd, struct tcp_connection* c,
33
+							char* buf, unsigned len,
34
+							snd_flags_t send_flags, long* resp, int locked);
35
+
36
+int tcpconn_1st_send(int fd, struct tcp_connection* c,
37
+							char* buf, unsigned len,
38
+							snd_flags_t send_flags, long* resp, int locked);
39
+
40
+int tcpconn_send_unsafe(int fd, struct tcp_connection *c,
41
+						char* buf, unsigned len, snd_flags_t send_flags);
42
+
43
+/* direct non-blocking, unsafe (assumes locked) send on a tcp connection */
44
+int _tcpconn_write_nb(int fd, struct tcp_connection* c,
45
+									char* buf, int len);
46
+
47
+
48
+#endif /*__tcp_int_send_h*/
49
+
50
+/* vi: set ts=4 sw=4 tw=79:ai:cindent: */