Class AckSystem.ReliablePacket
Inheritance
System.Object
Inherited Members
Show
Syntax
public class ReliablePacket
Fields
LastSequence
Declaration
public ushort LastSequence
Length
Declaration
public int Length
Buffer
Declaration
public ByteBuffer Buffer
Order
Declaration
public ushort Order
Sequences
Declaration
public readonly List<ushort> Sequences
Methods
OnSend(UInt16)
Declaration
public void OnSend(ushort sequence)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16 | sequence |
OnAck()
Declaration
public void OnAck()
Setup(UInt16, ByteBuffer, Int32)
Declaration
public void Setup(ushort order, ByteBuffer buffer, int length)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16 | order | |
Mirage.SocketLayer.ByteBuffer | buffer | |
System.Int32 | length |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
CreateNew(Pool<AckSystem.ReliablePacket>)
Declaration
public static AckSystem.ReliablePacket CreateNew(Pool<AckSystem.ReliablePacket> pool)
Parameters
Type | Name | Description |
---|---|---|
Mirage.SocketLayer.Pool<Mirage.SocketLayer.AckSystem.ReliablePacket> | pool |
Returns
Type | Description |
---|---|
Mirage.SocketLayer.AckSystem.ReliablePacket |