예제 #1
0
 public void onAccept(TCPServerLoop l, ServerSocketChannel ssc, SocketChannel sc) {
   l.createTCPClient(new Client(), sc);
 }
예제 #2
0
 static void server() {
   TCPServerLoop loop = new TCPServerLoop();
   loop.start();
   loop.createTCPServer(new Server(), new InetSocketAddress(4321));
 }