Class Init


  • public class Init
    extends Object
    An init message to be sent or received from a peer
    • Method Detail

      • get_features

        public InitFeatures get_features()
        The relevant features which the sender supports
      • set_features

        public void set_features​(InitFeatures val)
        The relevant features which the sender supports
      • get_remote_network_address

        public Option_NetAddressZ get_remote_network_address()
        The receipient's network address. This adds the option to report a remote IP address back to a connecting peer using the init message. A node can decide to use that information to discover a potential update to its public IPv4 address (NAT) and use that for a node_announcement update message containing the new address.
      • set_remote_network_address

        public void set_remote_network_address​(Option_NetAddressZ val)
        The receipient's network address. This adds the option to report a remote IP address back to a connecting peer using the init message. A node can decide to use that information to discover a potential update to its public IPv4 address (NAT) and use that for a node_announcement update message containing the new address.
      • clone

        public Init clone()
        Creates a copy of the Init
        Overrides:
        clone in class Object
      • write

        public byte[] write()
        Serialize the Init object into a byte array which can be read by Init_read
      • read

        public static Result_InitDecodeErrorZ read​(byte[] ser)
        Read a Init from a byte array, created by Init_write