private Protocol handshake(Decoder in, Encoder out, Transceiver connection) throws IOException { if (connection != null && connection.isConnected()) return connection.getRemote(); HandshakeRequest request = (HandshakeRequest)handshakeReader.read(null, in); Protocol remote = protocols.get(request.clientHash);
private Protocol handshake(Decoder in, Encoder out, Transceiver connection) throws IOException { if (connection != null && connection.isConnected()) return connection.getRemote(); HandshakeRequest request = (HandshakeRequest)handshakeReader.read(null, in); Protocol remote = protocols.get(request.clientHash);
private Protocol handshake(Decoder in, Encoder out, Transceiver connection) throws IOException { if (connection != null && connection.isConnected()) return connection.getRemote(); HandshakeRequest request = (HandshakeRequest)handshakeReader.read(null, in); Protocol remote = protocols.get(request.clientHash);