Package org.helios.netty.examples.state

Examples of org.helios.netty.examples.state.SimpleNIOClient


    // Create a map with the channel options
    Map<String, Object> options = new HashMap<String, Object>();
    options.put("connectTimeoutMillis", ioTimeout);
    // Create the client
    // Not providing any handlers since we're not using any for this test
    SimpleNIOClient client = new SimpleNIOClient(options);
    // Issue a connect operation
    ChannelFuture cf = client.connect("heliosapm.com", 80);   
    // Add a completion listener
    cf.addListener(new ChannelFutureListener() {
      public void operationComplete(ChannelFuture future) throws Exception {
        if(future.isSuccess()) {
          clog("F: Connected:" + future.isDone());
View Full Code Here

TOP

Related Classes of org.helios.netty.examples.state.SimpleNIOClient

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.