严智鑫
2025-11-11 dd348d0ecae2492d0f39c84d22d1c4336c42787f
nglib/src/toTcp/TcpMain.java
@@ -6,22 +6,14 @@
public class TcpMain {
    public static void main(String[] args) throws Exception
    {
//        try{
//            new TcpMultiServer().start(55559);
//        }catch (Exception e){
//            System.out.println("tcp服务发生错误");
//        }
        getElectric();
    }
    public static void getElectric() throws Exception
    {
        //new ServerSocket(55550).close();
        try{
            new TcpMultiServer().start(55550);
        }catch (Exception e){
            System.out.println("tcp服务发生错误"+e);
            System.out.println("tcp����������"+e);
        }
    }
@@ -32,7 +24,7 @@
            new TcpMultiServer().start(55550);
        }catch (Exception e){
            System.out.println("tcp服务发生错误"+e);
            System.out.println("tcp����������"+e);
        }
    }