Class BoundPeer
Assembly: Libplanet.dll
Syntax
[Serializable]
public sealed class BoundPeer : Peer, ISerializable
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
EndPoint
Declaration
[Pure]
public DnsEndPoint EndPoint { get; }
Property Value
Methods
|
Improve this Doc
View Source
GetObjectData(SerializationInfo, StreamingContext)
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Overrides
|
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
Exceptions
|
Improve this Doc
View Source
ToBencodex()
Declaration
public override Bencodex.Types.Dictionary ToBencodex()
Returns
Type |
Description |
Bencodex.Types.Dictionary |
|
Overrides
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
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
Extension Methods