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);
|
}
|
|
}
|
|
|
}
|