//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public void initChannel(io.netty.channel.socket.SocketChannel ch) throws Exception public override void InitChannel(SocketChannel ch) { _log.info("Installing handshake server local %s remote %s", ch.localAddress(), ch.remoteAddress()); _pipelineBuilderFactory.server(ch, _log).addFraming().add("handshake_server_encoder", new ServerMessageEncoder()).add("handshake_server_decoder", new ServerMessageDecoder()).add("handshake_server", CreateHandshakeServer(ch)).install(); }
private SocketAddress ToSocketAddress(SocketChannel channel) { InetSocketAddress inetSocketAddress = channel.remoteAddress(); return(new SocketAddress(inetSocketAddress.HostString, inetSocketAddress.Port)); }