Class Peer
A representation of peer node.
Assembly: Libplanet.dll
Syntax
[Serializable]
public class Peer : ISerializable
Constructors
|
Improve this Doc
View Source
Peer(Bencodex.Types.Dictionary)
Declaration
public Peer(Bencodex.Types.Dictionary dictionary)
Parameters
Type |
Name |
Description |
Bencodex.Types.Dictionary |
dictionary |
|
|
Improve this Doc
View Source
Peer(PublicKey)
Declaration
public Peer(PublicKey publicKey)
Parameters
|
Improve this Doc
View Source
Peer(SerializationInfo, StreamingContext)
Declaration
protected Peer(SerializationInfo info, StreamingContext context)
Parameters
Properties
|
Improve this Doc
View Source
Address
The peer's address which is derived from
its PublicKey.
Declaration
[Pure]
public Address Address { get; }
Property Value
See Also
|
Improve this Doc
View Source
PublicIPAddress
Declaration
[Pure]
public IPAddress PublicIPAddress { get; }
Property Value
|
Improve this Doc
View Source
PublicKey
Declaration
[Pure]
public PublicKey PublicKey { get; }
Property Value
Methods
|
Improve this Doc
View Source
GetObjectData(SerializationInfo, StreamingContext)
Declaration
public virtual void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
|
Improve this Doc
View Source
ToBencodex()
Declaration
public virtual Bencodex.Types.Dictionary ToBencodex()
Returns
Type |
Description |
Bencodex.Types.Dictionary |
|
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
|
Improve this Doc
View Source
Equality(Peer, Peer)
Declaration
public static bool operator ==(Peer left, Peer right)
Parameters
Type |
Name |
Description |
Peer |
left |
|
Peer |
right |
|
Returns
|
Improve this Doc
View Source
Inequality(Peer, Peer)
Declaration
public static bool operator !=(Peer left, Peer right)
Parameters
Type |
Name |
Description |
Peer |
left |
|
Peer |
right |
|
Returns
Implements
See Also