Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Net
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Public/Net/NetPacketNotify.h |
Include | #include "Net/NetPacketNotify.h" |
Syntax
class FNetPacketNotify
Remarks
FNetPacketNotify - Drives delivery of sequence numbers, acknowledgments and notifications of delivery sequence numbers
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
Constructor |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | AckSeq
(
SequenceNumberT Seq |
Mark Seq as received and update current InSeq, missing sequence numbers will be marked as lost |
![]() ![]() |
bool | CanSend () |
If we do have more unacknowledged sequence numbers in-flight than our maximum sendwindow we should not send more as the receiving end will not be able to detect if the sequence number has wrapped around |
![]() |
SequenceNumberT | Increment outgoing seq number and commit data | |
![]() ![]() |
SIZE_T | Get the current sequenceHistory length in bits | |
![]() ![]() |
SequenceNumberT | GetInAckSeq () |
Get the last received sequence number that we have accepted, InAckSeq cannot be larger than InSeq |
![]() ![]() |
SequenceNumberT | GetInSeq () |
Get the last received in sequence number |
![]() ![]() |
const SequenceHistoryT & | Get the current SequenceHistory | |
![]() ![]() |
SequenceNumberT | GetOutAckSeq () |
Get the last outgoing sequence number acknowledged by remote |
![]() ![]() |
SequenceNumberT | GetOutSeq () |
Get the current outgoing sequence number |
![]() |
SequenceNumberT::DifferenceT | GetSequenceDelta
(
const FNotificationHeader& NotificationData |
Gets the delta between the present sequence, and the sequence inside the specified header - if the delta is positive |
![]() |
void | Init
(
SequenceNumberT InitialInSeq, |
Init notification with expected initial sequence numbers |
![]() |
void | NakSeq
(
SequenceNumberT Seq |
Explicitly mark Seq as not received and update current InSeq, additional missing sequence numbers will be marked as lost |
![]() ![]() |
bool | ReadHeader
(
FNotificationHeader& Data, |
Read header from stream |
![]() |
SequenceNumberT::DifferenceT | Update
(
const FNotificationHeader& NotificationData, |
Update state of PacketNotification based on received header and invoke packet notifications for received acks. |
![]() |
bool | WriteHeader
(
FBitWriter& Writer, |
Write NotificationHeader, and update outgoing ack record if bRefresh is true we will attempt to refresh a previously written header if the resulting size will be the same as the already written header. |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FNotificationHeader |
Typedefs
Name | Description |
---|---|
AckRecordT | |
SequenceHistoryT | |
SequenceNumberT |
Constants
Name | Description |
---|---|
MaxSequenceHistoryLength | |
SequenceNumberBits |