Class ReliableBatch
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
Type | Name | Description |
---|---|---|
System.Int32 | maxPacketSize | |
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
Type | Description |
---|---|
System.Byte[] |
GetBatchLength()
Declaration
protected override int GetBatchLength()
Returns
Type | Description |
---|---|
System.Int32 |
CreateNewBatch()
Declaration
protected override void CreateNewBatch()
SendAndReset()
Declaration
protected override void SendAndReset()
IDisposable.Dispose()
Declaration
void IDisposable.Dispose()