boot.channel(NioSocketChannel.class);
boot.option(ChannelOption.SO_KEEPALIVE, true);
final RsfContext rsfContext = this.rsfContext;
boot.handler(new ChannelInitializer<SocketChannel>() {
public void initChannel(SocketChannel ch) throws Exception {
ch.pipeline().addLast(new RSFCodec(), new ClientHandler(rsfContext));
}
});
ChannelFuture future = null;
if (localAddress != null) {
future = boot.connect(remoteAddress, localAddress);