OSDN Git Service

Ver.1.4.10: Change parameter's name and value in config file.
authorwatanaby <>
Tue, 26 Dec 2006 02:37:05 +0000 (02:37 +0000)
committerwatanaby <>
Tue, 26 Dec 2006 02:37:05 +0000 (02:37 +0000)
opengate/conf/opengatesrv.conf.sample
opengate/doc/Changes.html
opengate/opengatesrv/get-param.c
opengate/opengatesrv/test-watch-client.c
opengate/opengatesrv/watch-client.c

index 34e507f..b09539b 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<Opengate ConfigVersion="1.4.9">
+<Opengate ConfigVersion="1.4.10">
 
 <!-- ################################################# 
 #    ####### NEED TO MODIFY FOLLOWING PARAMETERS #####  -->
        <!-- In JAVA connection, send HELLO and get reply. -->
        <!-- In HTTP connection, existance of HELLO request. -->
        <!-- In no connection, check mac address mismatch and no packet. -->
-       <ActiveCheck>
-               <Interval>600</Interval>
-               <NoPacketInterval>5400</NoPacketInterval>
-       </ActiveCheck>
+       <ActiveCheckInterval>100</ActiveCheckInterval>
+
+       <!-- Close when no packet is passed between the interval -->
+       <NoPacketInterval>5400</NoPacketInterval>
 
        <!-- Watch client with Http Keep-Alive -->
        <HttpWatch>
index aeed46b..777065d 100644 (file)
@@ -528,6 +528,11 @@ Ver.1.4.9 at 2006.12.20</DT>
 <DD>\r
 Change hello timing control from client side to server side.\r
 </DD>\r
+<DT>\r
+Ver.1.4.10 at 2006.12.26</DT>\r
+<DD>\r
+Change parameter's name and value in config file.\r
+</DD>\r
 \r
 </DL>\r
 <b>Please see CVS in SourceForge.net to check the file difference between versions.</b>\r
index 5347779..9fd42d7 100644 (file)
@@ -28,7 +28,7 @@ Programmed by Yoshiaki WATANABE
 #include "opengatesrv.h"
 #include "../ezxml/ezxml.h"
 
-#define CONFIG_VERSION "1.4.9"
+#define CONFIG_VERSION "1.4.10"
 #define SEPARATOR "/"
 
 int debug=0;
index f6fc755..05110a3 100644 (file)
@@ -76,7 +76,7 @@ int  main(int argc, char **argv)
   printf("PUT> telnet %s %d\n", clientAddr4, port);
   printf("PUT> %s\n",userID);
   printf("GET> accept\n");
-  printf(" waiting ActiveCheck/Interval \n");
+  printf(" waiting ActiveCheckInterval \n");
   printf("GET> hello \n");
   printf("PUT> hello \n");
   printf("PUT> quit \n");
index 7d6e237..a9faeef 100644 (file)
@@ -150,8 +150,8 @@ int waitClientConnect(char *userid, char *userProperty, char *sessionId, char *c
   alarmArg.userid=userid;
   alarmArg.userProperty=userProperty;
   alarmArg.ipStatus=ipStatus;
-  alarmArg.checkInterval=atoi(GetConfValue("ActiveCheck/Interval"));
-  alarmArg.noPacketInterval=atoi(GetConfValue("ActiveCheck/NoPacketInterval"));  
+  alarmArg.checkInterval=atoi(GetConfValue("ActiveCheckInterval"));
+  alarmArg.noPacketInterval=atoi(GetConfValue("NoPacketInterval"));  
 
   /* set no conection initially */
   connectMode=NOCONNECT;