• Version 4.2.7
Show / Hide Table of Contents

Class Packet

The received network packet.

Inheritance
object
Packet
Implements
ICloneable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: OnixS.CmeMdHandler
Assembly: OnixS.CmeMdHandler.dll
Syntax
public class Packet : ICloneable

Constructors

Packet(IDecoder, byte[])

Constructor.

Declaration
public Packet(IDecoder decoder, byte[] buffer)
Parameters
Type Name Description
IDecoder decoder

The SBE decoder.

byte[] buffer

The network packet data.

Properties

Current

Declaration
public IMessage Current { get; }
Property Value
Type Description
IMessage

The current message.

FeedType

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

The feed type.

PacketLength

Declaration
public int PacketLength { get; }
Property Value
Type Description
int

The packet data length.

PacketOffset

Declaration
public int PacketOffset { get; }
Property Value
Type Description
int

The packet data offset.

ReceivingTimestamp

Declaration
public long ReceivingTimestamp { get; }
Property Value
Type Description
long

The packet receiving timestamp.

SendingTime

Declaration
public ulong SendingTime { get; }
Property Value
Type Description
ulong

The packet sending timestamp.

SeqNum

Declaration
public uint SeqNum { get; }
Property Value
Type Description
uint

The packet sequence number.

Methods

Clone()

Copy packet data and return cloned object.

Declaration
public object Clone()
Returns
Type Description
object

Cloned object.

GetRawData()

Returns the network packet raw data.

Declaration
public byte[] GetRawData()
Returns
Type Description
byte[]

The network packet raw data.

MoveNext()

Moves to the next message.

Declaration
public bool MoveNext()
Returns
Type Description
bool

true if the next message exist, false otherwise.

Reset()

Resets the message enumerator to the initial state.

Declaration
public void Reset()

ToString()

Returns the text representation.

Declaration
public override string ToString()
Returns
Type Description
string

The text representation.

Overrides
object.ToString()

Implements

ICloneable
In this article
Back to top Copyright © Onix Solutions.
Generated by DocFX