Show / Hide Table of Contents

    Class PeerInfo

    Inheritance
    System.Object
    PeerInfo
    Implements
    Google.Protobuf.IMessage<PeerInfo>
    Google.Protobuf.IMessage
    System.IEquatable<PeerInfo>
    Google.Protobuf.IDeepCloneable<PeerInfo>
    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 PeerInfo : IMessage<PeerInfo>, IMessage, IEquatable<PeerInfo>, IDeepCloneable<PeerInfo>

    Constructors

    | Improve this Doc View Source

    PeerInfo()

    Declaration
    public PeerInfo()
    | Improve this Doc View Source

    PeerInfo(PeerInfo)

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

    Fields

    | Improve this Doc View Source

    CreatedFieldNumber

    Field number for the "created" field.

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

    InactiveForFieldNumber

    Field number for the "inactive_for" field.

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

    IsBlacklistedFieldNumber

    Field number for the "is_blacklisted" field.

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

    IsUnreachableFieldNumber

    Field number for the "is_unreachable" field.

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

    LastSeenFieldNumber

    Field number for the "last_seen" field.

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

    ModifiedFieldNumber

    Field number for the "modified" field.

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

    PeerIdFieldNumber

    Field number for the "peer_id" field.

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

    ReputationFieldNumber

    Field number for the "reputation" field.

    Declaration
    public const int ReputationFieldNumber = 2
    Field Value
    Type Description
    System.Int32

    Properties

    | Improve this Doc View Source

    Created

    created is when the peer was created

    Declaration
    public Timestamp Created { get; set; }
    Property Value
    Type Description
    Google.Protobuf.WellKnownTypes.Timestamp
    | 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

    InactiveFor

    is how long the peer has beekn inactive for

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

    IsBlacklisted

    is to check if the peer is blackListed

    Declaration
    public bool IsBlacklisted { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IsUnreachable

    is when the peer cannot be reached on the network

    Declaration
    public bool IsUnreachable { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    LastSeen

    is when the peer was last seen

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

    Modified

    modified is when the peer was last modified

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

    Parser

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

    PeerId

    is peerId of network

    Declaration
    public PeerId PeerId { get; set; }
    Property Value
    Type Description
    PeerId
    | Improve this Doc View Source

    Reputation

    reputation of peer

    Declaration
    public int Reputation { get; set; }
    Property Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    CalculateSize()

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

    Clone()

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

    Equals(PeerInfo)

    Declaration
    public bool Equals(PeerInfo other)
    Parameters
    Type Name Description
    PeerInfo 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

    MergeFrom(PeerInfo)

    Declaration
    public void MergeFrom(PeerInfo other)
    Parameters
    Type Name Description
    PeerInfo 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