public DataStructure createDataStructure() throws DataFormatException { ReconfigureSessionMessage msg = new ReconfigureSessionMessage(); msg.setSessionId((SessionId)(new SessionIdTest()).createDataStructure()); msg.setSessionConfig((SessionConfig)(new SessionConfigTest()).createDataStructure()); return msg; } public DataStructure createStructureToRead() { return new ReconfigureSessionMessage(); }
public DataStructure createStructureToRead() { return new ReconfigureSessionMessage(); } }
SessionId id = message.getSessionId(); SessionConfig cfg = _runner.getConfig(id); if (cfg == null) { _log.info("Updating options - old: " + cfg + " new: " + message.getSessionConfig()); if (!message.getSessionConfig().getDestination().equals(cfg.getDestination())) { _log.error("Dest mismatch"); sendStatusMessage(id, SessionStatusMessage.STATUS_INVALID); cfg.getOptions().putAll(message.getSessionConfig().getOptions()); ClientTunnelSettings settings = new ClientTunnelSettings(dest); Properties props = new Properties();
return new ReceiveMessageEndMessage(); case ReconfigureSessionMessage.MESSAGE_TYPE: return new ReconfigureSessionMessage(); case ReportAbuseMessage.MESSAGE_TYPE: return new ReportAbuseMessage();
ReconfigureSessionMessage msg = new ReconfigureSessionMessage(); SessionConfig cfg = new SessionConfig(session.getMyDestination()); Properties props = getRouterOptions(session); throw new I2PSessionException("Unable to sign the session config", dfe); msg.setSessionConfig(cfg); SessionId sid = session.getSessionId(); if (sid == null) { return; msg.setSessionId(sid); session.sendMessage(msg);