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,42 +0,0 @@
1
-/*
2
- * Copyright (C) 2006 iptelorg GmbH
3
- *
4
- * This file is part of Kamailio, a free SIP server.
5
- *
6
- * Kamailio is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version
10
- *
11
- * Kamailio is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program; if not, write to the Free Software
18
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
19
- */
20
-/*! \brief Kamailio core :: tcp various information
21
- * \ingroup core
22
- */
23
-
24
-#ifndef _tcp_info_h
25
-#define _tcp_info_h
26
-
27
-struct tcp_gen_info{
28
-	int tcp_readers;
29
-	int tcp_max_connections; /* startup connection limit, cannot be exceeded*/
30
-	int tls_max_connections; /* startup tls limit, cannot exceed tcp limit*/
31
-	int tcp_connections_no; /* crt. connections number */
32
-	int tls_connections_no; /* crt. tls connections number */
33
-	int tcp_write_queued; /* total bytes queued for write, 0 if no
34
-							 write queued support is enabled */
35
-};
36
-
37
-
38
-
39
-
40
-void tcp_get_info(struct tcp_gen_info* ti);
41
-
42
-#endif
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,21 +1,14 @@
1 1
 /*
2
- * $Id$
3
- *
4 2
  * Copyright (C) 2006 iptelorg GmbH
5 3
  *
6
- * This file is part of ser, a free SIP server.
4
+ * This file is part of Kamailio, a free SIP server.
7 5
  *
8
- * ser is free software; you can redistribute it and/or modify
6
+ * Kamailio is free software; you can redistribute it and/or modify
9 7
  * it under the terms of the GNU General Public License as published by
10 8
  * the Free Software Foundation; either version 2 of the License, or
11 9
  * (at your option) any later version
12 10
  *
13
- * For a license to use the ser software under conditions
14
- * other than those described here, or to purchase support for this
15
- * software, please contact iptel.org by e-mail at the following addresses:
16
- *    info@iptel.org
17
- *
18
- * ser is distributed in the hope that it will be useful,
11
+ * Kamailio is distributed in the hope that it will be useful,
19 12
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 13
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21 14
  * GNU General Public License for more details.
... ...
@@ -24,8 +17,8 @@
24 17
  * along with this program; if not, write to the Free Software
25 18
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
26 19
  */
27
-/*
28
- * tcp various information
20
+/*! \brief Kamailio core :: tcp various information
21
+ * \ingroup core
29 22
  */
30 23
 
31 24
 #ifndef _tcp_info_h
Browse code

all: updated FSF address in GPL text

Anthony Messina authored on 04/07/2014 09:36:37 • Daniel-Constantin Mierla committed on 04/07/2014 09:37:36
Showing 1 changed files
... ...
@@ -22,7 +22,7 @@
22 22
  *
23 23
  * You should have received a copy of the GNU General Public License
24 24
  * along with this program; if not, write to the Free Software
25
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
25
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
26 26
  */
27 27
 /*
28 28
  * tcp various information
Browse code

core/tcp/tls: added tls_max_connections global parameter

- set a limit to active tls connections
- its management is done in tcp code, as tls is encryption layer over
tcp
- tls connections are still counted as tcp connections, thus this limit
cannot exceed tcp_max_connections
- default value 2048
- core.tcp_options lists also the tls connections number

Daniel-Constantin Mierla authored on 13/12/2011 22:01:48
Showing 1 changed files
... ...
@@ -34,7 +34,9 @@
34 34
 struct tcp_gen_info{
35 35
 	int tcp_readers;
36 36
 	int tcp_max_connections; /* startup connection limit, cannot be exceeded*/
37
-	int tcp_connections_no; /* crt. number */
37
+	int tls_max_connections; /* startup tls limit, cannot exceed tcp limit*/
38
+	int tcp_connections_no; /* crt. connections number */
39
+	int tls_connections_no; /* crt. tls connections number */
38 40
 	int tcp_write_queued; /* total bytes queued for write, 0 if no
39 41
 							 write queued support is enabled */
40 42
 };
Browse code

tcp: use dynamic config framework, part 2

- added tcp_connect_timeout, tcp_send_timeout,
tcp_connection_lifetime, tcp_max_connections, tcp_accept_aliases
to the config framework.

- added 2 new tcp related variables: tcp alias_flags and tcp
new_conn_alias_flags

Andrei Pelinescu-Onciul authored on 05/03/2009 17:20:42
Showing 1 changed files
... ...
@@ -33,7 +33,7 @@
33 33
 
34 34
 struct tcp_gen_info{
35 35
 	int tcp_readers;
36
-	int tcp_max_connections;
36
+	int tcp_max_connections; /* startup connection limit, cannot be exceeded*/
37 37
 	int tcp_connections_no; /* crt. number */
38 38
 	int tcp_write_queued; /* total bytes queued for write, 0 if no
39 39
 							 write queued support is enabled */
Browse code

- tcp support for queueing writes: if some data cannot be written immediately on the socket (socket buffers full or still connecting), the data will be queued and written at a latter time (max. queue size per socket is controlled by tcp_conn_wq_max, timeout by tcp_send_timeout and total queued bytes / max. mem. used by tcp_wq_max). By default disabled (experimental), to enable it use tcp_buf_write=yes in ser.cfg. To compile without queueing support use -DNO_TCP_BUF_WRITE.

Andrei Pelinescu-Onciul authored on 04/12/2007 20:25:29
Showing 1 changed files
... ...
@@ -35,6 +35,8 @@ struct tcp_gen_info{
35 35
 	int tcp_readers;
36 36
 	int tcp_max_connections;
37 37
 	int tcp_connections_no; /* crt. number */
38
+	int tcp_write_queued; /* total bytes queued for write, 0 if no
39
+							 write queued support is enabled */
38 40
 };
39 41
 
40 42
 
Browse code

- advanced tcp options support: - support for defering tcp accepts until some data is received (linux & freebsd), default off. See NEWS: tcp_defer_accept. - support for delaying the final ACK from the 3-way handshake until some data is sent (the ACK will come with the 1st data segment). Default on when supported (linux only). See NEWS: tcp_delayed_ack. - support for limiting the number of retransmitted SYNs (linux only, see NEW: tcp_syncnt) - support for limiting the lifetime of orphaned sockets in FIN_WAIT2 (linux only, see NEWS: tcp_linger2) - keepalive support, see NEWS: tcp_keepalive (default on), tcp_keepidle, tcp_keepintvl and tcp_keepcnt

- the FD cache can now be turned off from ser.cfg (see NEW: tcp_fd_cache)

Andrei Pelinescu-Onciul authored on 28/11/2007 19:20:47
Showing 1 changed files
... ...
@@ -42,5 +42,4 @@ struct tcp_gen_info{
42 42
 
43 43
 void tcp_get_info(struct tcp_gen_info* ti);
44 44
 
45
-
46 45
 #endif
Browse code

- removed some exported information: inactive_connection and number of requests (it was bogus anyway)

Andrei Pelinescu-Onciul authored on 10/02/2006 18:21:51
Showing 1 changed files
... ...
@@ -35,8 +35,6 @@ struct tcp_gen_info{
35 35
 	int tcp_readers;
36 36
 	int tcp_max_connections;
37 37
 	int tcp_connections_no; /* crt. number */
38
-	int tcp_inactive_connections;
39
-	unsigned int tcp_total_requests;
40 38
 };
41 39
 
42 40
 
Browse code

- fixed some tcp connections accounting bugs - tcp info available via fifo/rpc

Andrei Pelinescu-Onciul authored on 06/02/2006 16:47:31
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,48 @@
1
+/*
2
+ * $Id$
3
+ *
4
+ * Copyright (C) 2006 iptelorg GmbH
5
+ *
6
+ * This file is part of ser, a free SIP server.
7
+ *
8
+ * ser is free software; you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation; either version 2 of the License, or
11
+ * (at your option) any later version
12
+ *
13
+ * For a license to use the ser software under conditions
14
+ * other than those described here, or to purchase support for this
15
+ * software, please contact iptel.org by e-mail at the following addresses:
16
+ *    info@iptel.org
17
+ *
18
+ * ser is distributed in the hope that it will be useful,
19
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
+ * GNU General Public License for more details.
22
+ *
23
+ * You should have received a copy of the GNU General Public License
24
+ * along with this program; if not, write to the Free Software
25
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26
+ */
27
+/*
28
+ * tcp various information
29
+ */
30
+
31
+#ifndef _tcp_info_h
32
+#define _tcp_info_h
33
+
34
+struct tcp_gen_info{
35
+	int tcp_readers;
36
+	int tcp_max_connections;
37
+	int tcp_connections_no; /* crt. number */
38
+	int tcp_inactive_connections;
39
+	unsigned int tcp_total_requests;
40
+};
41
+
42
+
43
+
44
+
45
+void tcp_get_info(struct tcp_gen_info* ti);
46
+
47
+
48
+#endif