Show / Hide Table of Contents

    Class PeerId

    * Aggregated size of the fields in PeerId should be 42 bytes as specified in https://github.com/catalyst-network/protocol-blueprint/blob/master/PeerProtocol.md

    Inheritance
    System.Object
    PeerId
    Implements
    Google.Protobuf.IMessage<PeerId>
    Google.Protobuf.IMessage
    System.IEquatable<PeerId>
    Google.Protobuf.IDeepCloneable<PeerId>
    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Catalyst.Protocol.Peer
    Assembly: Catalyst.Protocol.dll
    Syntax
    public sealed class PeerId : IMessage<PeerId>, IMessage, IEquatable<PeerId>, IDeepCloneable<PeerId>

    Constructors

    | Improve this Doc View Source

    PeerId()

    Declaration
    public PeerId()
    | Improve this Doc View Source

    PeerId(PeerId)

    Declaration
    public PeerId(PeerId other)
    Parameters
    Type Name Description
    PeerId other

    Fields

    | Improve this Doc View Source

    IpFieldNumber

    Field number for the "ip" field.

    Declaration
    public const int IpFieldNumber = 1
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    PortFieldNumber

    Field number for the "port" field.

    Declaration
    public const int PortFieldNumber = 2
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    PublicKeyFieldNumber

    Field number for the "public_key" field.

    Declaration
    public const int PublicKeyFieldNumber = 3
    Field Value
    Type Description
    System.Int32

    Properties

    | Improve this Doc View Source

    Descriptor

    Declaration
    public static MessageDescriptor Descriptor { get; }
    Property Value
    Type Description
    Google.Protobuf.Reflection.MessageDescriptor
    | Improve this Doc View Source

    Ip

    16 bytes

    Declaration
    public ByteString Ip { get; set; }
    Property Value
    Type Description
    Google.Protobuf.ByteString
    | Improve this Doc View Source

    IpAddress

    Declaration
    public IPAddress IpAddress { get; }
    Property Value
    Type Description
    System.Net.IPAddress
    | Improve this Doc View Source

    IpEndPoint

    Declaration
    public IPEndPoint IpEndPoint { get; }
    Property Value
    Type Description
    System.Net.IPEndPoint
    | Improve this Doc View Source

    Parser

    Declaration
    public static MessageParser<PeerId> Parser { get; }
    Property Value
    Type Description
    Google.Protobuf.MessageParser<PeerId>
    | Improve this Doc View Source

    Port

    2 bytes

    Declaration
    public uint Port { get; set; }
    Property Value
    Type Description
    System.UInt32
    | Improve this Doc View Source

    PublicKey

    Peers public key, node operators are encouraged to use the same, public key across all their nodes.

    Declaration
    public ByteString PublicKey { get; set; }
    Property Value
    Type Description
    Google.Protobuf.ByteString

    Methods

    | Improve this Doc View Source

    CalculateSize()

    Declaration
    public int CalculateSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    Clone()

    Declaration
    public PeerId Clone()
    Returns
    Type Description
    PeerId
    | Improve this Doc View Source

    Equals(PeerId)

    Declaration
    public bool Equals(PeerId other)
    Parameters
    Type Name Description
    PeerId other
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override bool Equals(object other)
    Parameters
    Type Name Description
    System.Object other
    Returns
    Type Description
    System.Boolean
    Overrides
    System.Object.Equals(System.Object)
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.Object.GetHashCode()
    | Improve this Doc View Source

    IsValid()

    Declaration
    public bool IsValid()
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    MergeFrom(PeerId)

    Declaration
    public void MergeFrom(PeerId other)
    Parameters
    Type Name Description
    PeerId other
    | Improve this Doc View Source

    MergeFrom(CodedInputStream)

    Declaration
    public void MergeFrom(CodedInputStream input)
    Parameters
    Type Name Description
    Google.Protobuf.CodedInputStream input
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()
    | Improve this Doc View Source

    WriteTo(CodedOutputStream)

    Declaration
    public void WriteTo(CodedOutputStream output)
    Parameters
    Type Name Description
    Google.Protobuf.CodedOutputStream output

    Explicit Interface Implementations

    | Improve this Doc View Source

    IMessage.Descriptor

    Declaration
    MessageDescriptor IMessage.Descriptor { get; }
    Returns
    Type Description
    Google.Protobuf.Reflection.MessageDescriptor

    Implements

    Google.Protobuf.IMessage<T>
    Google.Protobuf.IMessage
    System.IEquatable<T>
    Google.Protobuf.IDeepCloneable<T>
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Catalyst Network