Skip to main content

Class ReliableBatch

Inheritance
System.Object
Mirage.SocketLayer.Batch
Inherited Members
Show

Mirage.SocketLayer.Batch.MESSAGE_LENGTH_SIZE

Mirage.SocketLayer.Batch.Flush()

Syntax
public class ReliableBatch : Batch, IDisposable

Constructors

ReliableBatch(Int32, Func<PacketType, AckSystem.ReliablePacket>, Action<AckSystem.ReliablePacket>)

Declaration
public ReliableBatch(int maxPacketSize, Func<PacketType, AckSystem.ReliablePacket> createReliableBuffer, Action<AckSystem.ReliablePacket> sendReliablePacket)
Parameters
TypeNameDescription
System.Int32maxPacketSize
System.Func<Mirage.SocketLayer.PacketType, Mirage.SocketLayer.AckSystem.ReliablePacket>createReliableBuffer
System.Action<Mirage.SocketLayer.AckSystem.ReliablePacket>sendReliablePacket

Properties

Created

Declaration
protected override bool Created { get; }

Methods

GetBatch()

Declaration
protected override byte[] GetBatch()
Returns
TypeDescription
System.Byte[]

GetBatchLength()

Declaration
protected override int GetBatchLength()
Returns
TypeDescription
System.Int32

CreateNewBatch()

Declaration
protected override void CreateNewBatch()

SendAndReset()

Declaration
protected override void SendAndReset()

IDisposable.Dispose()

Declaration
void IDisposable.Dispose()