Class BoundPeer
Assembly: Libplanet.Net.dll
Syntax
public sealed class BoundPeer : ISerializable, IEquatable<BoundPeer>
Constructors
|
Improve this Doc
View Source
BoundPeer(Bencodex.Types.Dictionary)
Declaration
public BoundPeer(Bencodex.Types.Dictionary dictionary)
Parameters
Type |
Name |
Description |
Bencodex.Types.Dictionary |
dictionary |
|
|
Improve this Doc
View Source
BoundPeer(PublicKey, DnsEndPoint)
Initializes a new instance of the BoundPeer class.
Declaration
public BoundPeer(PublicKey publicKey, DnsEndPoint endPoint)
Parameters
Properties
|
Improve this Doc
View Source
Address
The peer's address which is derived from
its PublicKey.
Declaration
public Address Address { get; }
Property Value
See Also
|
Improve this Doc
View Source
EndPoint
The corresponding of this peer.
Declaration
public DnsEndPoint EndPoint { get; }
Property Value
Type |
Description |
DnsEndPoint |
|
|
Improve this Doc
View Source
PeerString
Declaration
public string PeerString { get; }
Property Value
|
Improve this Doc
View Source
PublicIPAddress
Declaration
public IPAddress? PublicIPAddress { get; }
Property Value
|
Improve this Doc
View Source
PublicKey
Declaration
public PublicKey PublicKey { get; }
Property Value
Methods
|
Improve this Doc
View Source
Equals(BoundPeer)
Declaration
public bool Equals(BoundPeer other)
Parameters
Returns
|
Improve this Doc
View Source
Equals(Nullable<Object>)
Declaration
public override bool Equals(object? obj)
Parameters
Returns
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
|
Improve this Doc
View Source
GetObjectData(SerializationInfo, StreamingContext)
Declaration
public void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type |
Name |
Description |
SerializationInfo |
info |
|
StreamingContext |
context |
|
|
Improve this Doc
View Source
ParsePeer(String)
Initializes a new instance of the BoundPeer class from
comma-separated string.
Declaration
public static BoundPeer ParsePeer(string peerInfo)
Parameters
Type |
Name |
Description |
String |
peerInfo |
A comma-separated string have format {pubkey},{host},{port}.
|
Returns
|
Improve this Doc
View Source
ToBencodex()
Declaration
public Bencodex.Types.Dictionary ToBencodex()
Returns
Type |
Description |
Bencodex.Types.Dictionary |
|
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Operators
|
Improve this Doc
View Source
Equality(BoundPeer, BoundPeer)
Declaration
public static bool operator ==(BoundPeer left, BoundPeer right)
Parameters
Returns
|
Improve this Doc
View Source
Inequality(BoundPeer, BoundPeer)
Declaration
public static bool operator !=(BoundPeer left, BoundPeer right)
Parameters
Returns
Implements
IEquatable<>
Extension Methods