• Design
  • API Reference
  • Changelog
  • Contribute
Show / Hide Table of Contents
  • Libplanet
    • Address
    • AddressExtension
    • ByteUtil
    • Hashcash
    • Hashcash.Stamp
    • HashDigest<T>
    • HashDigestExtension
    • Nonce
  • Libplanet.Action
    • AccountStateGetter
    • ActionEvaluation<T>
    • ActionTypeAttribute
    • AddressStateMap
    • IAccountStateDelta
    • IAction
    • IActionContext
    • IRandom
    • MissingActionTypeException
    • PolymorphicAction<T>
  • Libplanet.Blockchain
    • BlockChain<T>
  • Libplanet.Blockchain.Policies
    • BlockPolicy<T>
    • BlockPolicyExtension
    • IBlockPolicy<T>
  • Libplanet.Blocks
    • Block<T>
    • InvalidBlockDifficultyException
    • InvalidBlockException
    • InvalidBlockHashException
    • InvalidBlockIndexException
    • InvalidBlockNonceException
    • InvalidBlockPreviousHashException
    • InvalidBlockTimestampException
  • Libplanet.Crypto
    • InvalidCiphertextException
    • PrivateKey
    • PublicKey
    • SymmetricKey
  • Libplanet.Net
    • BlockDownloadState
    • DifferentAppProtocolVersionException
    • DifferentProtocolVersionEventArgs
    • IceServer
    • IceServerException
    • InvalidMessageException
    • NoSwarmContextException
    • Peer
    • PeerNotFoundException
    • PeerSetDelta
    • Swarm
    • SwarmException
  • Libplanet.Serialization
    • BencodexFormatter<T>
    • SerializationInfoExtension
  • Libplanet.Store
    • BaseIndex<TKey, TVal>
    • BaseStore
    • BlockSet<T>
    • FileStore
    • IStore
    • NamespaceNotFoundException
    • TransactionSet<T>
  • Libplanet.Tx
    • InvalidTxException
    • InvalidTxIdException
    • InvalidTxNonceException
    • InvalidTxPublicKeyException
    • InvalidTxSignatureException
    • InvalidTxUpdatedAddressesException
    • Transaction<T>
    • TxId
    • UnexpectedlyTerminatedTxRehearsalException

Class Peer

A representation of peer node.

Inheritance
Object
Peer
Implements
ISerializable
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Namespace: Libplanet.Net
Assembly: Libplanet.dll
Syntax
[Serializable]
[Equals]
public class Peer : ISerializable

Constructors

| Improve this Doc View Source

Peer(PublicKey, DnsEndPoint, Int32)

Initializes a new instance of the Peer class.

Declaration
public Peer(PublicKey publicKey, DnsEndPoint endPoint, int appProtocolVersion)
Parameters
Type Name Description
PublicKey publicKey

A PublicKey of the Peer.

DnsEndPoint endPoint

A DnsEndPoint consisting of the host and port of the Peer.

Int32 appProtocolVersion

An application protocol version that the Peer is using.

| 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
[IgnoreDuringEquals]
[Pure]
public Address Address { get; }
Property Value
Type Description
Address
See Also
PublicKey
| Improve this Doc View Source

AppProtocolVersion

The corresponding application protocol version of this peer.

Declaration
[IgnoreDuringEquals]
[Pure]
public int AppProtocolVersion { get; }
Property Value
Type Description
Int32
See Also
DifferentVersionPeerEncountered
| Improve this Doc View Source

EndPoint

The corresponding DnsEndPoint of this peer.

Declaration
[Pure]
public DnsEndPoint EndPoint { get; }
Property Value
Type Description
DnsEndPoint
| Improve this Doc View Source

PublicKey

The corresponding PublicKey of this peer.

Declaration
[Pure]
public PublicKey PublicKey { get; }
Property Value
Type Description
PublicKey

Methods

| 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

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
Object.ToString()

Implements

System.Runtime.Serialization.ISerializable

See Also

Swarm
  • Improve this Doc
  • View Source
Back to top Copyright © 2019 Planetarium
Generated by DocFX