Class GetDateMessage

  • All Implemented Interfaces:
    I2CPMessage

    public class GetDateMessage
    extends I2CPMessageImpl
    Request the other side to send us what they think the current time is. Only supported from client to router. Since 0.8.7, optionally include a version string. Since 0.9.11, optionally include options.
    • Constructor Detail

      • GetDateMessage

        public GetDateMessage()
      • GetDateMessage

        public GetDateMessage​(String version)
        Parameters:
        version - the client's version String to be sent to the router; may be null
        Since:
        0.8.7
      • GetDateMessage

        public GetDateMessage​(String version,
                              Properties options)
        Defaults in GetDateMessage options are, in general, NOT honored. Defaults are not serialized out-of-JVM, and the router does not recognize defaults in-JVM. Client side must promote defaults to the primary map.
        Parameters:
        version - the client's version String to be sent to the router; may be null; must be non-null if options is non-null and non-empty.
        options - Client options to be sent to the router; primarily for authentication; may be null; keys and values 255 bytes (not chars) max each
        Since:
        0.9.11