Show / Hide Table of Contents

Class Peer

A representation of peer node.

Inheritance
Object
Peer
BoundPeer
Namespace: Libplanet.Net
Assembly: Libplanet.dll
Syntax
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
Type Name Description
PublicKey publicKey
| 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
Type Description
Address
See Also
PublicKey
| Improve this Doc View Source

PublicIPAddress

Declaration
public IPAddress PublicIPAddress { get; }
Property Value
Type Description
IPAddress
| Improve this Doc View Source

PublicKey

The corresponding PublicKey of this peer.

Declaration
public PublicKey PublicKey { get; }
Property Value
Type Description
PublicKey

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

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
Type Description
String

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
Type Description
Boolean
| 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
Type Description
Boolean

See Also

Swarm<T>
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2021 Planetarium