Show / Hide Table of Contents

Class DhtPeerMessage

Information about a peer.

Inheritance
Object
DhtPeerMessage
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: PeerTalk.Routing
Assembly: PeerTalk.dll
Syntax
[ProtoContract]
public class DhtPeerMessage

Properties

| Improve this Doc View Source

Addresses

Addresses for a given peer

Declaration
[ProtoMember(2)]
public byte[][] Addresses { get; set; }
Property Value
Type Description
Byte[][]

A sequence of MultiAddress as a byte array.

| Improve this Doc View Source

Connection

used to signal the sender's connection capabilities to the peer

Declaration
[ProtoMember(3)]
public ConnectionType Connection { get; set; }
Property Value
Type Description
ConnectionType
| Improve this Doc View Source

Id

ID of a given peer.

Declaration
[ProtoMember(1)]
public byte[] Id { get; set; }
Property Value
Type Description
Byte[]

The MultiHash as a byte array,

Methods

| Improve this Doc View Source

TryToPeer(out Peer)

Convert the message into a Peer.

Declaration
public bool TryToPeer(out Peer peer)
Parameters
Type Name Description
Peer peer
Returns
Type Description
Boolean
  • Improve this Doc
  • View Source
Back to top Generated by DocFX