- 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)
1 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,53 +0,0 @@ |
1 |
-/* |
|
2 |
- * Copyright (C) 2001-2003 FhG Fokus |
|
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 |
-/*! |
|
21 |
-* \file |
|
22 |
-* \brief Kamailio core :: File descriptor handling |
|
23 |
-* \ingroup core |
|
24 |
-* Module: \ref core |
|
25 |
-*/ |
|
26 |
- |
|
27 |
-#ifndef _pass_fd_h |
|
28 |
-#define _pass_fd_h |
|
29 |
- |
|
30 |
-#ifdef __OS_cygwin |
|
31 |
-/* check if MSG_WAITALL is defined */ |
|
32 |
-#include <sys/types.h> |
|
33 |
-#include <sys/socket.h> |
|
34 |
- |
|
35 |
-#ifndef MSG_WAITALL |
|
36 |
-#define NO_MSG_WAITALL |
|
37 |
-#define MSG_WAITALL 0x80000000 |
|
38 |
-#endif /* MSG_WAITALL */ |
|
39 |
- |
|
40 |
-#ifndef MSG_DONTWAIT |
|
41 |
-#define NO_MSG_DONTWAIT |
|
42 |
-#endif /* MSG_DONT_WAIT */ |
|
43 |
- |
|
44 |
-#endif /* __OS_cygwin */ |
|
45 |
- |
|
46 |
-int send_fd(int unix_socket, void* data, int data_len, int fd); |
|
47 |
-int receive_fd(int unix_socket, void* data, int data_len, int* fd, int flags); |
|
48 |
- |
|
49 |
-int recv_all(int socket, void* data, int data_len, int flags); |
|
50 |
-int send_all(int socket, void* data, int data_len); |
|
51 |
- |
|
52 |
- |
|
53 |
-#endif |
... | ... |
@@ -1,21 +1,14 @@ |
1 | 1 |
/* |
2 |
- * $Id$ |
|
3 |
- * |
|
4 | 2 |
* Copyright (C) 2001-2003 FhG Fokus |
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,6 +17,12 @@ |
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 |
*/ |
20 |
+/*! |
|
21 |
+* \file |
|
22 |
+* \brief Kamailio core :: File descriptor handling |
|
23 |
+* \ingroup core |
|
24 |
+* Module: \ref core |
|
25 |
+*/ |
|
27 | 26 |
|
28 | 27 |
#ifndef _pass_fd_h |
29 | 28 |
#define _pass_fd_h |
... | ... |
@@ -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 |
#ifndef _pass_fd_h |
... | ... |
@@ -28,6 +28,21 @@ |
28 | 28 |
#ifndef _pass_fd_h |
29 | 29 |
#define _pass_fd_h |
30 | 30 |
|
31 |
+#ifdef __OS_cygwin |
|
32 |
+/* check if MSG_WAITALL is defined */ |
|
33 |
+#include <sys/types.h> |
|
34 |
+#include <sys/socket.h> |
|
35 |
+ |
|
36 |
+#ifndef MSG_WAITALL |
|
37 |
+#define NO_MSG_WAITALL |
|
38 |
+#define MSG_WAITALL 0x80000000 |
|
39 |
+#endif /* MSG_WAITALL */ |
|
40 |
+ |
|
41 |
+#ifndef MSG_DONTWAIT |
|
42 |
+#define NO_MSG_DONTWAIT |
|
43 |
+#endif /* MSG_DONT_WAIT */ |
|
44 |
+ |
|
45 |
+#endif /* __OS_cygwin */ |
|
31 | 46 |
|
32 | 47 |
int send_fd(int unix_socket, void* data, int data_len, int fd); |
33 | 48 |
int receive_fd(int unix_socket, void* data, int data_len, int* fd, int flags); |
... | ... |
@@ -30,9 +30,9 @@ |
30 | 30 |
|
31 | 31 |
|
32 | 32 |
int send_fd(int unix_socket, void* data, int data_len, int fd); |
33 |
-int receive_fd(int unix_socket, void* data, int data_len, int* fd); |
|
33 |
+int receive_fd(int unix_socket, void* data, int data_len, int* fd, int flags); |
|
34 | 34 |
|
35 |
-int recv_all(int socket, void* data, int data_len); |
|
35 |
+int recv_all(int socket, void* data, int data_len, int flags); |
|
36 | 36 |
int send_all(int socket, void* data, int data_len); |
37 | 37 |
|
38 | 38 |
|
... | ... |
@@ -32,6 +32,8 @@ |
32 | 32 |
int send_fd(int unix_socket, void* data, int data_len, int fd); |
33 | 33 |
int receive_fd(int unix_socket, void* data, int data_len, int* fd); |
34 | 34 |
|
35 |
+int recv_all(int socket, void* data, int data_len); |
|
36 |
+int send_all(int socket, void* data, int data_len); |
|
35 | 37 |
|
36 | 38 |
|
37 | 39 |
#endif |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,37 @@ |
1 |
+/* |
|
2 |
+ * $Id$ |
|
3 |
+ * |
|
4 |
+ * Copyright (C) 2001-2003 Fhg Fokus |
|
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 |
+#ifndef _pass_fd_h |
|
29 |
+#define _pass_fd_h |
|
30 |
+ |
|
31 |
+ |
|
32 |
+int send_fd(int unix_socket, void* data, int data_len, int fd); |
|
33 |
+int receive_fd(int unix_socket, void* data, int data_len, int* fd); |
|
34 |
+ |
|
35 |
+ |
|
36 |
+ |
|
37 |
+#endif |