/** * Returns a {@link SocksException} instance with a message of reply. * * @param reply Server's reply. * @return An instance of {@link SocksException}. */ public static SocksException serverReplyException(ServerReply reply) { SocksException ex = serverReplyException(reply.getValue()); ex.setServerReply(reply); return ex; }
/** * Returns a {@link SocksException} instance with a message of reply. * * @param reply Server's reply. * @return An instance of {@link SocksException}. */ public static SocksException serverReplyException(ServerReply reply) { SocksException ex = serverReplyException(reply.getValue()); ex.setServerReply(reply); return ex; }
bytes[1] = reply.getValue(); bytes[2] = (byte) reserved; bytes[3] = (byte) addressType;
bytes[1] = reply.getValue(); bytes[2] = (byte) reserved; bytes[3] = (byte) addressType;