java.lang.Object
net.i2p.client.impl.HandlerImpl
net.i2p.client.impl.SetDateMessageHandler
- All Implemented Interfaces:
I2CPMessageHandler
Handle I2CP time messages from the router.
Field Summary
Fields inherited from class HandlerImpl
_context, _logModifier and TypeFieldDescriptionprotected final I2PAppContextThe application context.protected final LogThe logger.Constructor Summary
ConstructorsConstructorDescriptionCreate the handler for I2CP time messages.Method Summary
All MethodsModifier and TypeMethodDescriptionvoidhandleMessage(I2CPMessage message, I2PSessionImpl session) Handle an incoming I2CP message.Methods inherited from class HandlerImpl
getType
Constructor Details
SetDateMessageHandler
Create the handler for I2CP time messages.- Parameters:
ctx- the client context whose clock and log manager this handler uses
Method Details
handleMessage
Handle an incoming I2CP message.- Parameters:
message- the SetDateMessage carrying the router's time and versionsession- the session whose date and capabilities are updated