rainbow954 7 лет назад
Родитель
Сommit
62ccee428a

+ 3 - 3
src/test/java/com/tidecloud/dataacceptance/HelloClient.java

@@ -32,9 +32,9 @@ public class HelloClient {
             // Start the client.  
             ChannelFuture f = b.connect(host, port).sync();  
            
-           f.channel().close();
+         //  f.channel().close();
             // Wait until the connection is closed.  
-           f.channel().closeFuture().sync();  
+         //  f.channel().closeFuture().sync();  
         } finally {  
             workerGroup.shutdownGracefully();  
         }  
@@ -56,7 +56,7 @@ public class HelloClient {
         		 
                 try {
         				client.connect("localhost", 6707);
-        				Thread.sleep(5000);
+        				Thread.sleep(50000000);
         			} catch (Exception e) {
         				// TODO Auto-generated catch block
         				e.printStackTrace();

+ 2 - 2
src/test/java/com/tidecloud/dataacceptance/HelloClientIntHandler.java

@@ -62,8 +62,8 @@ public class HelloClientIntHandler extends ChannelInboundHandlerAdapter {
    // msg=  DatatypeConverter.parseHexBinary(a);
 //      String msg = "n,2,860854021358527,2018-03-21,12:00:20,31.888678,117.480155,0.025002,9942.554893,111.110001,z00575.675,s00107.600,f00000.000,t00000.000,x0062,e0,g0,m0,v0,N0,p0000,k0000000000";
 //       msg=msg+"\n";
-        String msg1 = "7e02000072010000000001096100000000000C00130243997606D237CD003F02E400821804170233320104000347120202045903020000FC3A01020000020C002EA10B0019248800157C83030C009DB76C008DFBC4000FBBA8040800006C9400004F38050200020604001FE0F50704000000142B044C79008730011B310112207e";
-        
+        String msg1 = "7e00020000010000000001007F7D017e";
+      //  String msg1 ="7e0102000A010000000001007D0230303030303030343434737e";
       //  message = "[3G*3925160532*00CB*UD,100418,065535,V,30.632577,N,120.6878867,E,0.00,0.0,0.0,0,100,98,0,0,00000010,7,255,460,0,6234,57713,148,6234,57714,129,6234,57683,124,6234,57698,123,6234,57697,122,6234,57457,119,6234,57729,118,0,16.6]";
        msg= DatatypeConverter.parseHexBinary(msg1);