wu
2024-12-31 1edefcae08fe7c8df6a177e5dbbc8ab8f8194187
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package toTcp;
 
import java.io.IOException;
import java.net.ServerSocket;
 
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);
        }
 
    }
 
    public static void getElectric1()  throws Exception
    {
        try{
            new TcpMultiServer().start(55550);
        }catch (Exception e){
 
            System.out.println("tcp·þÎñ·¢Éú´íÎó"+e);
        }
 
    }
 
 
}