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