13#if (UE_BUILD_SHIPPING || UE_BUILD_TEST)
14# define UE_NET_ENABLE_PACKET_NOTIFY_LOG 0
16# define UE_NET_ENABLE_PACKET_NOTIFY_LOG 1
19#if UE_NET_ENABLE_PACKET_NOTIFY_LOG
20# define UE_LOG_PACKET_NOTIFY(Format, ...) UE_LOG(LogNetTraffic, Verbose, Format, ##__VA_ARGS__)
22# define UE_LOG_PACKET_NOTIFY(...)
25#define UE_LOG_PACKET_NOTIFY_WARNING(Format, ...) UE_LOG(LogNetTraffic, Warning, Format, ##__VA_ARGS__)
101 template<
class Functor>
142 AckRecordT AckRecord;
143 SIZE_T WrittenHistoryWordCount;
163 bool GetHasUnacknowledgedAcks()
const;
169 void SetWaitForSequenceHistoryFlush();
171 template<
class Functor>
175#if WITH_AUTOMATION_WORKER
176 friend UE::Net::Private::FNetPacketNotifyTestUtil;
186template<
class Functor>
205template<
class Functor>
257 if (OutAckSeq > WaitingForFlushSeqAck)
259 WaitingForFlushSeqAck = OutAckSeq;
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
void Init()
Definition LockFreeList.h:4
#define UE_LOG_PACKET_NOTIFY(Format,...)
Definition NetPacketNotify.h:20
#define UE_LOG_PACKET_NOTIFY_WARNING(Format,...)
Definition NetPacketNotify.h:25
Definition NetPacketNotify.h:39
SequenceNumberT GetInSeq() const
Definition NetPacketNotify.h:108
SequenceNumberT GetOutSeq() const
Definition NetPacketNotify.h:114
TSequenceHistory< MaxSequenceHistoryLength > SequenceHistoryT
Definition NetPacketNotify.h:45
SequenceNumberT::DifferenceT Update(const FNotificationHeader &NotificationData, Functor &&InFunc)
Definition NetPacketNotify.h:187
bool WriteHeader(FBitWriter &Writer, bool bRefresh=false)
Definition NetPacketNotify.cpp:203
bool IsSequenceWindowFull(uint32 SafetyMargin=0U) const
Definition NetPacketNotify.h:180
const SequenceHistoryT & GetInSeqHistory() const
Definition NetPacketNotify.h:105
bool IsWaitingForSequenceHistoryFlush() const
Definition NetPacketNotify.h:132
SequenceNumberT::DifferenceT GetSequenceDelta(const FNotificationHeader &NotificationData)
Definition NetPacketNotify.h:82
SequenceNumberT GetOutAckSeq() const
Definition NetPacketNotify.h:117
void AckSeq(SequenceNumberT Seq)
Definition NetPacketNotify.h:62
bool ReadHeader(FNotificationHeader &Data, FBitReader &Reader) const
Definition NetPacketNotify.cpp:236
SequenceNumberT::DifferenceT GetCurrentSequenceHistoryLength() const
Definition NetPacketNotify.cpp:15
bool CanSend() const
Definition NetPacketNotify.h:120
TSequenceNumber< SequenceNumberBits, uint16 > SequenceNumberT
Definition NetPacketNotify.h:44
void NakSeq(SequenceNumberT Seq)
Definition NetPacketNotify.h:65
@ MaxSequenceHistoryLength
Definition NetPacketNotify.h:42
FNetPacketNotify()
Definition NetPacketNotify.cpp:9
@ SequenceNumberBits
Definition NetPacketNotify.h:41
SequenceNumberT CommitAndIncrementOutSeq()
Definition NetPacketNotify.cpp:255
SequenceNumberT GetInAckSeq() const
Definition NetPacketNotify.h:111
Definition ResizableCircularQueue.h:21
Definition SequenceHistory.h:15
static constexpr SIZE_T BitsPerWord
Definition SequenceHistory.h:19
static constexpr SIZE_T Size
Definition SequenceHistory.h:22
Definition SequenceNumber.h:13
SequenceT Get() const
Definition SequenceNumber.h:34
static DifferenceT Diff(TSequenceNumber A, TSequenceNumber B)
Definition SequenceNumber.h:98
int32 DifferenceT
Definition SequenceNumber.h:18
Definition NetworkVersion.cpp:28
Definition BitReader.h:25
Definition BitWriter.h:22