1 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,64 +0,0 @@ |
1 |
-/* $Id$ |
|
2 |
- * |
|
3 |
- * Copyright (C) 2006-2007 VozTelecom Sistemas S.L |
|
4 |
- * |
|
5 |
- * This file is part of Kamailio, a free SIP server. |
|
6 |
- * |
|
7 |
- * Kamailio is free software; you can redistribute it and/or modify |
|
8 |
- * it under the terms of the GNU General Public License as published by |
|
9 |
- * the Free Software Foundation; either version 2 of the License, or |
|
10 |
- * (at your option) any later version |
|
11 |
- * |
|
12 |
- * Kamailio is distributed in the hope that it will be useful, |
|
13 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
15 |
- * GNU General Public License for more details. |
|
16 |
- * |
|
17 |
- * You should have received a copy of the GNU General Public License |
|
18 |
- * along with this program; if not, write to the Free Software |
|
19 |
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
20 |
- */ |
|
21 |
- |
|
22 |
- |
|
23 |
-#ifndef HA_H |
|
24 |
-#define HA_H |
|
25 |
-#include "../../locking.h"/* for get_lock_t define*/ |
|
26 |
-#include <time.h> |
|
27 |
-struct ping{ |
|
28 |
- unsigned int id; |
|
29 |
- struct timeval sent; |
|
30 |
- struct ping *next; |
|
31 |
-}; |
|
32 |
- |
|
33 |
-struct ha{ |
|
34 |
- int timed_out_pings; |
|
35 |
- int timeout; |
|
36 |
- gen_lock_t *mutex; |
|
37 |
- struct ping *pings; |
|
38 |
- int begin; |
|
39 |
- int end; |
|
40 |
- int count; |
|
41 |
- int size; |
|
42 |
-}; |
|
43 |
- |
|
44 |
-extern char *jain_ping_config; |
|
45 |
-extern int jain_ping_period; |
|
46 |
-extern int jain_ping_timeout; |
|
47 |
-extern struct ping *jain_pings; |
|
48 |
- |
|
49 |
-extern pid_t pinger_pid; |
|
50 |
- |
|
51 |
-extern char *servlet_ping_config; |
|
52 |
-extern int servlet_ping_period; |
|
53 |
-extern int servlet_ping_timeout; |
|
54 |
-extern struct ping *servlet_pings; |
|
55 |
- |
|
56 |
-extern int use_ha; |
|
57 |
- |
|
58 |
-char * create_ping_event(int *evt_len,int flags,unsigned int *seqno); |
|
59 |
-int prepare_ha(void); |
|
60 |
-int spawn_pinger(void); |
|
61 |
-int print_pingtable(struct ha *ta,int idx,int lock); |
|
62 |
-inline int init_pingtable(struct ha *table,int timeout,int maxpings); |
|
63 |
-inline void destroy_pingtable(struct ha *table); |
|
64 |
-#endif |
git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@5003 689a6050-402a-0410-94f2-e92a70836424
... | ... |
@@ -56,8 +56,8 @@ extern struct ping *servlet_pings; |
56 | 56 |
extern int use_ha; |
57 | 57 |
|
58 | 58 |
char * create_ping_event(int *evt_len,int flags,unsigned int *seqno); |
59 |
-int prepare_ha(); |
|
60 |
-int spawn_pinger(); |
|
59 |
+int prepare_ha(void); |
|
60 |
+int spawn_pinger(void); |
|
61 | 61 |
int print_pingtable(struct ha *ta,int idx,int lock); |
62 | 62 |
inline int init_pingtable(struct ha *table,int timeout,int maxpings); |
63 | 63 |
inline void destroy_pingtable(struct ha *table); |
git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@4518 689a6050-402a-0410-94f2-e92a70836424
... | ... |
@@ -2,14 +2,14 @@ |
2 | 2 |
* |
3 | 3 |
* Copyright (C) 2006-2007 VozTelecom Sistemas S.L |
4 | 4 |
* |
5 |
- * This file is part of openser, a free SIP server. |
|
5 |
+ * This file is part of Kamailio, a free SIP server. |
|
6 | 6 |
* |
7 |
- * openser is free software; you can redistribute it and/or modify |
|
7 |
+ * Kamailio is free software; you can redistribute it and/or modify |
|
8 | 8 |
* it under the terms of the GNU General Public License as published by |
9 | 9 |
* the Free Software Foundation; either version 2 of the License, or |
10 | 10 |
* (at your option) any later version |
11 | 11 |
* |
12 |
- * openser is distributed in the hope that it will be useful, |
|
12 |
+ * Kamailio is distributed in the hope that it will be useful, |
|
13 | 13 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | 14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 |
* GNU General Public License for more details. |
git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@2188 689a6050-402a-0410-94f2-e92a70836424
... | ... |
@@ -43,7 +43,6 @@ struct ha{ |
43 | 43 |
|
44 | 44 |
extern char *jain_ping_config; |
45 | 45 |
extern int jain_ping_period; |
46 |
-extern int jain_pings_lost; |
|
47 | 46 |
extern int jain_ping_timeout; |
48 | 47 |
extern struct ping *jain_pings; |
49 | 48 |
|
... | ... |
@@ -51,7 +50,6 @@ extern pid_t pinger_pid; |
51 | 50 |
|
52 | 51 |
extern char *servlet_ping_config; |
53 | 52 |
extern int servlet_ping_period; |
54 |
-extern int servlet_pings_lost; |
|
55 | 53 |
extern int servlet_ping_timeout; |
56 | 54 |
extern struct ping *servlet_pings; |
57 | 55 |
|
git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@1819 689a6050-402a-0410-94f2-e92a70836424
... | ... |
@@ -1,4 +1,24 @@ |
1 |
-/* $Id$ */ |
|
1 |
+/* $Id$ |
|
2 |
+ * |
|
3 |
+ * Copyright (C) 2006-2007 VozTelecom Sistemas S.L |
|
4 |
+ * |
|
5 |
+ * This file is part of openser, a free SIP server. |
|
6 |
+ * |
|
7 |
+ * openser is free software; you can redistribute it and/or modify |
|
8 |
+ * it under the terms of the GNU General Public License as published by |
|
9 |
+ * the Free Software Foundation; either version 2 of the License, or |
|
10 |
+ * (at your option) any later version |
|
11 |
+ * |
|
12 |
+ * openser is distributed in the hope that it will be useful, |
|
13 |
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 |
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
15 |
+ * GNU General Public License for more details. |
|
16 |
+ * |
|
17 |
+ * You should have received a copy of the GNU General Public License |
|
18 |
+ * along with this program; if not, write to the Free Software |
|
19 |
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
20 |
+ */ |
|
21 |
+ |
|
2 | 22 |
|
3 | 23 |
#ifndef HA_H |
4 | 24 |
#define HA_H |
git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@1448 689a6050-402a-0410-94f2-e92a70836424
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,46 @@ |
1 |
+/* $Id$ */ |
|
2 |
+ |
|
3 |
+#ifndef HA_H |
|
4 |
+#define HA_H |
|
5 |
+#include "../../locking.h"/* for get_lock_t define*/ |
|
6 |
+#include <time.h> |
|
7 |
+struct ping{ |
|
8 |
+ unsigned int id; |
|
9 |
+ struct timeval sent; |
|
10 |
+ struct ping *next; |
|
11 |
+}; |
|
12 |
+ |
|
13 |
+struct ha{ |
|
14 |
+ int timed_out_pings; |
|
15 |
+ int timeout; |
|
16 |
+ gen_lock_t *mutex; |
|
17 |
+ struct ping *pings; |
|
18 |
+ int begin; |
|
19 |
+ int end; |
|
20 |
+ int count; |
|
21 |
+ int size; |
|
22 |
+}; |
|
23 |
+ |
|
24 |
+extern char *jain_ping_config; |
|
25 |
+extern int jain_ping_period; |
|
26 |
+extern int jain_pings_lost; |
|
27 |
+extern int jain_ping_timeout; |
|
28 |
+extern struct ping *jain_pings; |
|
29 |
+ |
|
30 |
+extern pid_t pinger_pid; |
|
31 |
+ |
|
32 |
+extern char *servlet_ping_config; |
|
33 |
+extern int servlet_ping_period; |
|
34 |
+extern int servlet_pings_lost; |
|
35 |
+extern int servlet_ping_timeout; |
|
36 |
+extern struct ping *servlet_pings; |
|
37 |
+ |
|
38 |
+extern int use_ha; |
|
39 |
+ |
|
40 |
+char * create_ping_event(int *evt_len,int flags,unsigned int *seqno); |
|
41 |
+int prepare_ha(); |
|
42 |
+int spawn_pinger(); |
|
43 |
+int print_pingtable(struct ha *ta,int idx,int lock); |
|
44 |
+inline int init_pingtable(struct ha *table,int timeout,int maxpings); |
|
45 |
+inline void destroy_pingtable(struct ha *table); |
|
46 |
+#endif |