Package com.yz.net.expand

Examples of com.yz.net.expand.IoConnector


      Configure config = new Configure();
      config.setAddress(new InetSocketAddress("127.0.0.1",8899));
      config.setProtocolHandler(new Protocol());
      config.setIoHandler(new DataHandler());
     
      IoConnector connector = new IoConnector();
     
      config.start(connector);
     
      /*Thread t = new Thread(printRspTime);
      t.start();*/
 
View Full Code Here


  public static IoConnector connector = null;
 
  public static void main(String[] args) {
    try {
      //新建一个连接器
      connector = new IoConnector();
     
      Configure config = new Configure();
      config.setAddress(new InetSocketAddress("127.0.0.1", 8899));
      config.setProtocolHandler(new EchoProtocol());
      config.setIoHandler(new EchoHandler());
View Full Code Here

TOP

Related Classes of com.yz.net.expand.IoConnector

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.