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,40 +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
-
17
-/** Kamailio core :: tcp internal read functions.
18
- * @file tcp_read.h
19
- * @ingroup: core
20
- * Module: @ref core
21
- */
22
-
23
-#ifndef __tcp_read_h
24
-#define __tcp_read_h
25
-
26
-#include  "tcp_conn.h"
27
-
28
-#define RD_CONN_SHORT_READ		1
29
-#define RD_CONN_EOF				2
30
-#define RD_CONN_REPEAT_READ		4 /* read should be repeated (more data)
31
-								   (used so far only by tls) */
32
-#define RD_CONN_FORCE_EOF		65536
33
-
34
-int tcp_read_data(int fd, struct tcp_connection *c,
35
-					char* buf, int b_size, int* flags);
36
-
37
-
38
-#endif /*__tcp_read_h*/
39
-
40
-/* 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,16 +13,12 @@
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
-/** tcp internal read functions.
16
+
17
+/** Kamailio core :: tcp internal read functions.
19 18
  * @file tcp_read.h
20 19
  * @ingroup: core
21 20
  * Module: @ref core
22 21
  */
23
-/*
24
- * History:
25
- * --------
26
- *  2010-05-18  initial version (andrei)
27
-*/
28 22
 
29 23
 #ifndef __tcp_read_h
30 24
 #define __tcp_read_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,46 @@
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
+/** tcp internal read functions.
19
+ * @file tcp_read.h
20
+ * @ingroup: core
21
+ * Module: @ref core
22
+ */
23
+/*
24
+ * History:
25
+ * --------
26
+ *  2010-05-18  initial version (andrei)
27
+*/
28
+
29
+#ifndef __tcp_read_h
30
+#define __tcp_read_h
31
+
32
+#include  "tcp_conn.h"
33
+
34
+#define RD_CONN_SHORT_READ		1
35
+#define RD_CONN_EOF				2
36
+#define RD_CONN_REPEAT_READ		4 /* read should be repeated (more data)
37
+								   (used so far only by tls) */
38
+#define RD_CONN_FORCE_EOF		65536
39
+
40
+int tcp_read_data(int fd, struct tcp_connection *c,
41
+					char* buf, int b_size, int* flags);
42
+
43
+
44
+#endif /*__tcp_read_h*/
45
+
46
+/* vi: set ts=4 sw=4 tw=79:ai:cindent: */