| | |
| | | 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); |
| | | } |
| | | |
| | | } |
| | |
| | | new TcpMultiServer().start(55550); |
| | | }catch (Exception e){ |
| | | |
| | | System.out.println("tcp服务发生错误"+e); |
| | | System.out.println("tcp����������"+e); |
| | | } |
| | | |
| | | } |