Package org.jboss.netty.handler.codec.socks

Examples of org.jboss.netty.handler.codec.socks.SocksCmdResponse


    f.addListener(new ChannelFutureListener() {
      public void operationComplete(ChannelFuture future) throws Exception {
        if (future.isSuccess()) {
          // client数据转发到外部server
          inboundChannel.getPipeline().addLast("inboundChannel", new OutboundHandler(outboundChannel, "in"));
          inboundChannel.write(new SocksCmdResponse(SocksMessage.CmdStatus.SUCCESS, socksCmdRequest
              .getAddressType()));
          inboundChannel.setReadable(true);
        } else {
          inboundChannel.write(new SocksCmdResponse(SocksMessage.CmdStatus.FAILURE, socksCmdRequest
              .getAddressType()));
          inboundChannel.close();
        }
      }
    });
View Full Code Here

TOP

Related Classes of org.jboss.netty.handler.codec.socks.SocksCmdResponse

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.