Class Message
Serves as the base class for messages used in ITransport.
Namespace: Libplanet.Net.Messages
Assembly: Libplanet.dll
Syntax
public abstract class Message : object
Fields
| Improve this Doc View SourceCommonFrames
Declaration
public static readonly int CommonFrames
Field Value
Type | Description |
---|---|
Int32 |
Properties
| Improve this Doc View SourceDataFrames
The body of the message.
Declaration
public abstract IEnumerable<byte[]> DataFrames { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Byte[]> |
Identity
byte[]
-typed identity of the message.
If a message B is the reply of the message A,
B's identity must be set to A's identity.
Declaration
public byte[] Identity { get; set; }
Property Value
Type | Description |
---|---|
Byte[] |
Remote
The sender Peer of the message.
Declaration
public Peer Remote { get; set; }
Property Value
Type | Description |
---|---|
Peer |
Timestamp
The timestamp of the message is created.
Declaration
public DateTimeOffset Timestamp { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset |
Type
The type of the message.
Declaration
public abstract Message.MessageType Type { get; }
Property Value
Type | Description |
---|---|
Message.MessageType |
Version
AppProtocolVersion-typed version of the Remote's transport layer.
Declaration
public AppProtocolVersion Version { get; set; }
Property Value
Type | Description |
---|---|
AppProtocolVersion |