Show / Hide Table of Contents

Class Message

Serves as the base class for messages used in ITransport.

Inheritance
Object
Message
DifferentVersionMsg
FindNeighborsMsg
NeighborsMsg
PingMsg
PongMsg
Namespace: Libplanet.Net.Messages
Assembly: Libplanet.Net.dll
Syntax
public abstract class Message : object

Fields

| Improve this Doc View Source

CommonFrames

Declaration
public static readonly int CommonFrames
Field Value
Type Description
Int32

Properties

| Improve this Doc View Source

DataFrames

The body of the message.

Declaration
public abstract IEnumerable<byte[]> DataFrames { get; }
Property Value
Type Description
IEnumerable<Byte[]>
| Improve this Doc View Source

Identity

byte[]-typed identity of the message. If message B is a reply to message A, B's identity must be set to A's identity.

Declaration
public byte[] Identity { get; set; }
Property Value
Type Description
Byte[]
Remarks

The handling of the identity of a Message is implementation specific to ITransport.

| Improve this Doc View Source

Remote

The sender BoundPeer of the message.

Declaration
public BoundPeer Remote { get; set; }
Property Value
Type Description
BoundPeer
| Improve this Doc View Source

Timestamp

The timestamp of the message is created.

Declaration
public DateTimeOffset Timestamp { get; set; }
Property Value
Type Description
DateTimeOffset
| Improve this Doc View Source

Type

The type of the message.

Declaration
public abstract Message.MessageType Type { get; }
Property Value
Type Description
Message.MessageType
| Improve this Doc View Source

Version

AppProtocolVersion-typed version of the Remote's transport layer.

Declaration
public AppProtocolVersion Version { get; set; }
Property Value
Type Description
AppProtocolVersion
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2022 Planetarium