Class Peer
A representation of peer node.
Assembly: Libplanet.dll
Syntax
public class Peer : ISerializable
Constructors
|
Improve this Doc
View Source
Peer(PublicKey, Int32)
Declaration
public Peer(PublicKey publicKey, int appProtocolVersion)
Parameters
|
Improve this Doc
View Source
Peer(SerializationInfo, StreamingContext)
Declaration
protected Peer(SerializationInfo info, StreamingContext context)
Parameters
Type |
Name |
Description |
SerializationInfo |
info |
|
StreamingContext |
context |
|
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
AppProtocolVersion
The corresponding application protocol version of this peer.
Declaration
public int AppProtocolVersion { get; }
Property Value
See Also
Libplanet.Net.NetMQTransport.DifferentVersionPeerEncountered
|
Improve this Doc
View Source
PublicIPAddress
Declaration
public IPAddress PublicIPAddress { get; }
Property Value
Type |
Description |
IPAddress |
|
|
Improve this Doc
View Source
PublicKey
Declaration
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
Type |
Name |
Description |
SerializationInfo |
info |
|
StreamingContext |
context |
|
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
See Also