Package com.tryge.xocotl.io

Examples of com.tryge.xocotl.io.DuplexChannel.open()


  @Override
  public void run() {
    try {
      Socket socket = new Socket("localhost", ExampleServer.PORT);
      DuplexChannel channel = SocketChannels.getFactory().newSocketChannel(socket, new NopDecoder());
      channel.open();
      channel.sendAndForget(new ExampleMessage("1", "test"));
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.