Class Tend
public class Tend
- Inheritance
-
Tend
Constructors
Tend(Logger)
public Tend(Logger logger)
Parameters
logger
Logger
Tend(Logger, IOutgoingLogic, IIncomingLogic)
public Tend(Logger logger, IOutgoingLogic tendOut, IIncomingLogic tendIn)
Parameters
logger
LoggertendOut
IOutgoingLogictendIn
IIncomingLogic
Fields
Connected
public bool Connected
Field Value
Properties
CanSend
public bool CanSend { get; }
Property Value
LastReceivedByRemote
public SequenceId LastReceivedByRemote { get; }
Property Value
OutgoingSequenceId
public SequenceId OutgoingSequenceId { get; }
Property Value
Methods
DeserializeHeader(IInOctetStream)
public static TendHeader DeserializeHeader(IInOctetStream stream)
Parameters
stream
IInOctetStream
Returns
IsValidSeqToSend(in SequenceId)
public bool IsValidSeqToSend(in SequenceId sentSequenceId)
Parameters
sentSequenceId
SequenceId
Returns
ReadHeader(IInOctetStream, out TendHeader, out bool)
public bool ReadHeader(IInOctetStream stream, out TendHeader tendHeader, out bool didAck)
Parameters
stream
IInOctetStreamtendHeader
TendHeaderdidAck
bool
Returns
SerializeHeader(IOutOctetStream, TendHeader)
public static void SerializeHeader(IOutOctetStream stream, TendHeader tendHeader)
Parameters
stream
IOutOctetStreamtendHeader
TendHeader
WriteHeader(IOutOctetStream, bool)
public TendHeader WriteHeader(IOutOctetStream stream, bool isReliable)
Parameters
stream
IOutOctetStreamisReliable
bool
Returns
Events
OnDeliveryInfo
public event Action<DeliveryInfo> OnDeliveryInfo