Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Engine/NetConnection.h |
Include |
#include "Engine/NetConnection.h" |
class UNetConnection : public UPlayer
Name | Description | ||
---|---|---|---|
|
bool |
AllowMerge |
|
|
AnalyticsVars |
Net Analytics The locally cached/updated analytics variables, for the NetConnection - aggregated upon connection Close |
|
|
double |
AverageFrameTime |
The average frame delta time over the last 1 second period. |
|
float |
AvgLag |
Average lag seen during the last StatPeriod |
|
bool |
bLastHasServerFrameTime |
|
|
bool |
bNeedsByteSwapping |
Whether this channel needs to byte swap all data or not |
|
uint32: 1 |
bPendingDestroy |
|
|
Challenge |
||
|
Channels |
||
|
Children |
Child connections for secondary viewports |
|
|
ClientLoginState |
Login state tracking. |
|
|
ClientResponse |
||
|
ClientVisibleLevelNames |
On the server, the package names of streaming levels that the client has told us it has made visible the server will only replicate references to Actors in visible levels so that it's impossible to send references to Actors the client has not initialized |
|
|
int32 |
CountedFrames |
Nb of stats accumulated in CumulativeTime |
|
double |
CumulativeTime |
Total frames times accumulator |
|
int32 |
DefaultMaxChannelSize |
|
|
TObjectPtr< cla... |
Driver |
Owning net driver |
|
uint8 |
ExpectedClientLoginMsgType |
|
|
double |
FrameTime |
|
|
TUniquePtr< Pac... |
Handler |
PacketHandler, for managing layered handler components, which modify packets as they are sent/received |
|
int32 |
InBytes |
Bytes sent/received on this connection (accumulated during a StatPeriod) |
|
int32 |
InBytesPerSecond |
Bytes sent/received on this connection (per second) - these are from previous StatPeriod interval |
|
int32 |
InitInReliable |
|
|
int32 |
InitOutReliable |
|
|
int32 |
InPacketId |
|
|
int32 |
InPackets |
Packets sent/received on this connection (accumulated during a StatPeriod) |
|
int32 |
InPacketsLost |
Packets lost on this connection (accumulated during a StatPeriod) |
|
int32 |
InPacketsPerSecond |
Packets sent/received on this connection (per second) - these are from previous StatPeriod interval |
|
TArray< int32 > |
InReliable |
|
|
int32 |
InTotalBytes |
Total bytes sent/received on this connection |
|
int32 |
InTotalPackets |
Total packets sent/received on this connection |
|
int32 |
InTotalPacketsLost |
Total packets lost on this connection |
|
KeepProcessingActorChannelBunchesMap |
This holds a list of actor channels that want to fully shutdown, but need to continue processing bunches before doing so |
|
|
double |
LagAcc |
Total accumulated lag values during the current StatPeriod |
|
int32 |
LagCount |
Nb of stats accumulated in LagAcc |
|
LastEnd |
||
|
double |
LastGoodPacketRealtime |
|
|
LastOut |
||
|
LastOutBunch |
||
|
uint32 |
LastProcessedFrame |
|
|
double |
LastReceiveRealtime |
|
|
double |
LastReceiveTime |
Internal. |
|
double |
LastSendTime |
|
|
LastStart |
Merge info. |
|
|
double |
LastTickTime |
|
|
double |
LastTime |
Monitors frame time |
|
int32 |
LogCallCount |
|
|
double |
LogCallLastTime |
Log tracking. |
|
int32 |
LogSustainedCount |
|
|
FOnLowLevelSend |
LowLevelSendDel |
Delegate for hooking LowLevelSend |
|
int32 |
MaxPacket |
|
|
int32 |
MaxPacketHandlerBits |
The maximum number of bits all packet handlers will reserve |
|
TNetAnalyticsDa... |
NetAnalyticsData |
The net analytics data holder for the NetConnection analytics, which is where analytics variables are aggregated upon Close |
|
NetworkCongestionControl |
||
|
int |
NumAckBits |
Number of bits used for acks in the current packet. |
|
int |
NumBunchBits |
Number of bits used for bunches in the current packet. |
|
int |
NumPacketIdBits |
Number of bits used for the packet id in the current packet. |
|
int |
NumPaddingBits |
Number of bits used for padding in the current packet. |
|
OpenChannels |
||
|
int32 |
OutAckPacketId |
|
|
int32 |
OutBytes |
|
|
int32 |
OutBytesPerSecond |
|
|
uint8[256] |
OutBytesPerSecondHistory |
|
|
int32[256] |
OutLagPacketId |
|
|
double[256] |
OutLagTime |
|
|
int32 |
OutPacketId |
|
|
int32 |
OutPackets |
|
|
int32 |
OutPacketsLost |
|
|
int32 |
OutPacketsPerSecond |
|
|
TArray< int32 > |
OutReliable |
|
|
int32 |
OutTotalAcks |
Total acks sent on this connection |
|
int32 |
OutTotalBytes |
|
|
int32 |
OutTotalPackets |
|
|
int32 |
OutTotalPacketsLost |
|
|
TObjectPtr< cla... |
OwningActor |
Reference to controlling actor (usually PlayerController) |
|
TObjectPtr< cla... |
PackageMap |
Package map between local and remote. (negotiates net serialization) |
|
TSubclassOf< UP... |
PackageMapClass |
The class name for the PackageMap to be loaded |
|
int32 |
PacketOverhead |
Negotiated parameters. |
|
PacketSimulationSettings |
Packet settings for testing lag, net errors, etc |
|
|
TArray< int32 > |
PendingOutRec |
|
|
PlayerId |
Net id of remote player on this connection. Only valid on client connections (server side). |
|
|
int32 |
QueuedBits |
|
|
FOnReceivedRawP... |
ReceivedRawPacketDel |
Delegate for hooking ReceivedRawPacket |
|
TSharedPtr< FIn... |
RemoteAddr |
The remote address of this connection, typically generated from the URL. |
|
RequestURL |
||
|
EResendAllDataS... |
ResendAllDataState |
This functionality is used during replay checkpoints for example, so we can re-use the existing connection and channels to record a version of each actor and capture all properties that have changed since the actor has been alive... |
|
int32 |
ResponseId |
|
|
SendBuffer |
Packet. |
|
|
SendBunchHeader |
The singleton buffer for sending bunch header information |
|
|
SentTemporaries |
This actor is bNetTemporary, which means it should never be replicated after it's initial packet is complete |
|
|
StatelessConnectComponent |
Reference to the PacketHandler component, for managing stateless connection handshakes |
|
|
float |
StatPeriod |
Interval between gathering stats |
|
double |
StatUpdateTime |
Stat display. |
|
int32 |
TickCount |
|
|
bool |
TimeSensitive |
|
|
URL |
||
|
TObjectPtr< cla... |
ViewTarget |
The actor that is currently being viewed/controlled by the owning controller |
Name | Description | |
---|---|---|
|
UNetConnection ( |
Constructors and destructors. |
|
UNetConnection ( |
Name | Description | |
---|---|---|
|
~UNetConnection() |
Destructor |
Name | Description | ||
---|---|---|---|
|
FActorChanne... |
ActorChannelConstIterator() |
|
|
const FActor... |
ActorChannelMap() |
|
|
int32 |
ActorChannelsNum() |
|
|
void |
AddActorChannel ( |
|
|
void |
AddDestructionInfo ( |
|
|
void |
AddReferencedObjects ( |
|
|
void |
AddReservedChannel ( |
|
|
void |
AssertValid() |
Make sure this connection is in a reasonable state. |
|
void |
CleanUp() |
Closes the control channel, cleans up structures, and prepares for deletion |
|
void |
CleanupDormantActorState() |
|
|
void |
CleanupDormantReplicatorsForActor ( |
Remove the reference of all dormant object replicators owned by an actor |
|
void |
CleanupStaleDormantReplicators() |
Removes dormant object replicators from objects now invalid. |
|
void |
ClearDormantReplicatorsReference() |
|
|
bool |
ClientHasInitializedLevelFor ( |
Returns whether the client has initialized the level required for the given object |
|
void |
Close ( |
Closes the connection (including sending a close notify across the network) |
|
void |
Close ( |
Closes the connection (including sending a close notify across the network) |
|
void |
Close() |
Closes the connection (including sending a close notify across the network) NOTE: To be deprecated in the near future. |
|
void |
ConsumePacketAnalytics ( |
Returns the current packet stability analytics and resets them. |
|
void |
ConsumeQueuedActorDelinquencyAnalytics |
Returns the current delinquency analytics and resets them. |
|
void |
ConsumeSaturationAnalytics |
Returns the current saturation analytics and resets them. |
|
bool |
ContainsActorChannel ( |
|
|
UChannel ... |
CreateChannelByName ( |
Create a channel. |
|
TSharedPtr< ... |
CreateReplicatorForNewActorChannel ( |
Called by UActorChannel. |
|
Describe() |
Describe the connection. |
|
|
void |
DestroyIgnoredActor ( |
Called internally to destroy an actor during replay fast-forward when the actor channel index will be recycled |
|
void |
DestroyOwningActor() |
During cleanup this will destroy the actor owned by this connection (generally a PlayerController) |
|
void |
EnableEncryption() |
Enables encryption for the underlying encryption packet handler component. |
|
void |
EnableEncryption ( |
Sets the encryption data and enables encryption. |
|
void |
EnableEncryptionServer ( |
Sets the encryption data, enables encryption, and sends the encryption ack to the client. |
|
void |
ExecuteOnAllDormantReplicators |
Trigger a callback on all dormant replicators of every dormant actor we stored |
|
void |
ExecuteOnAllDormantReplicatorsOfActor ( |
Trigger a callback on all dormant replicators owned by a dormant actor |
|
UActorChanne... |
FindActorChannel ( |
|
|
UActorChanne... |
FindActorChannelRef ( |
|
|
TSharedPtr< ... |
FindAndRemoveDormantReplicator |
Find a dormant replicator for the channel actor or one of its subobjects. |
|
void |
FlushDormancy ( |
|
|
void |
FlushDormancyForObject |
Validate an objects dormancy state and prepare the object for replication again |
|
void |
FlushNet ( |
Flushes any pending data, bundling it into a packet and sending it via LowLevelSend() also handles network simulation settings (simulated lag, packet loss, etc) unless bIgnoreSimulation is true |
|
void |
FlushPacketOrderCache ( |
Flush the cache of sequenced packets waiting for a missing packet. |
|
void |
ForcePropertyCompare ( |
Forces properties on this actor to do a compare for one frame (rather than share shadow state) |
|
GetActorsStarvedByClassTimeMap() |
Returns the actor starvation map |
|
|
int32 |
GetAddrPort() |
|
|
bool |
GetAutoFlush() |
|
|
float |
GetAverageJitterInMS() |
Current jitter for this connection in milliseconds |
|
const TSet< ... |
GetClientMakingVisibleLevelNames() |
|
|
GetClientWorldPackageName() |
||
|
uint32 |
GetConnectionId() |
|
|
const EConne... |
GetConnectionState() |
|
|
double |
GetConnectTime() |
|
|
GetDestroyedStartupOrDormantActorGUIDs() |
||
|
UNetDriver &... |
GetDriver() |
|
|
const UNetDr... |
GetDriver() |
|
|
UE::Net::FNe... |
GetFaultRecovery() |
|
|
int64 |
GetFreeSendBufferBits() |
Returns number of bits left in current packet that can be used without causing a flush. |
|
const FNetCo... |
GetInLossPercentage() |
|
|
int32 |
GetInTotalHandlerPackets() |
|
|
FNetTraceCol... |
GetInTraceCollector() |
|
|
double |
GetLastRecvAckTime() |
|
|
int32 |
GetMaxSingleBunchSizeBits() |
The maximum number of bits allowed within a single bunch. |
|
GetNetHistogram() |
||
|
UE::Net::FNe... |
GetNetPing() |
|
|
uint32 |
GetNetworkCustomVersion ( |
|
|
int32 |
GetNumTickingChannels() |
|
|
GetOutgoingBunches() |
Returns the OutgoingBunches array, only to be used by UChannel::SendBunch |
|
|
const FNetCo... |
GetOutLossPercentage() |
|
|
uint32 |
GetOutTotalNotifiedPackets() |
Get the current number of sent packets for which we have received a delivery notification |
|
FNetTraceCol... |
GetOutTraceCollector() |
|
|
const FNetCo... |
GetPacketAnalytics() |
Returns the current packet stability analytics. |
|
uint32 |
GetParentConnectionId() |
If this is a child connection it will return the topmost parent coonnection ID, otherwise it will return its own ID. |
|
bool |
GetPendingCloseDueToReplicationFailure() |
|
|
bool |
GetPendingCloseDueToSocketSendFailure() |
|
|
GetPlayerOnlinePlatformName() |
Returns the online platform name for the player on this connection. |
|
|
const FNetQu... |
GetQueuedActorDelinquencyAnalytics() |
Returns the current delinquency analytics. |
|
TSharedPtr< ... |
GetRemoteAddr() |
Return the platform specific FInternetAddr type, containing this connections address. |
|
AActor * |
GetRepContextActor() |
|
|
ULevel * |
GetRepContextLevel() |
|
|
UReplication... |
GetReplicationConnectionDriver() |
|
|
FRPCDoSDetec... |
GetRPCDoS() |
|
|
const FNetCo... |
GetSaturationAnalytics() |
Returns the current saturation analytics. |
|
float |
GetTimeoutValue() |
Return current timeout value that should be used |
|
int32 |
GetTotalOutOfOrderPackets() |
Get the total number of out of order packets on this connection. |
|
int32 |
GetTotalOutOfOrderPacketsDuplicate() |
Get the total number of out of order packets that were duplicates on this connection. |
|
int32 |
GetTotalOutOfOrderPacketsLost() |
Get the total number of out of order packets lost on this connection. |
|
int32 |
GetTotalOutOfOrderPacketsRecovered() |
Get the total number of out of order packets recovered on this connection. |
|
UChildConnec... |
GetUChildConnection() |
Get the representation of a secondary splitscreen connection that reroutes calls to the parent connection |
|
UVoiceChanne... |
GetVoiceChannel() |
|
|
UWorld * |
GetWorld() |
Get the world the connection belongs to |
|
void |
HandleClientPlayer ( |
Handle the player controller client |
|
void |
HandleConnectionTimeout ( |
This is called whenever a connection has passed the relative time to be considered timed out. |
|
void |
HandleReceiveCloseReason ( |
Handles parsing/validation and logging of NMT_CloseReason messages |
|
void |
HandleReceiveNetUpgrade ( |
Handles receiving NMT_Upgrade messages (including at stateless handshake level) |
|
bool |
HasReceivedClientPacket() |
Whether or not a client packet has been received - used serverside, to delay any packet sends |
|
void |
InitBase ( |
Initialize common settings for this connection instance |
|
void |
InitChannelData() |
|
|
void |
InitConnection ( |
Initializes an "addressless" connection with the passed in settings |
|
void |
InitHandler() |
Initializes the PacketHandler |
|
void |
InitLocalConnection ( |
Initialize this connection instance to a remote source |
|
void |
InitRemoteConnection ( |
Initialize this connection instance from a remote source |
|
void |
InitSendBuffer() |
Resets the FBitWriter to its default state |
|
void |
InitSequence ( |
Initializes the sequence numbers for the connection, usually from shared randomized data |
|
bool |
IsClientMsgTypeValid ( |
This function validates that ClientMsgType is the next expected msg type. |
|
bool |
IsEncryptionEnabled() |
Returns true if encryption is enabled for this connection. |
|
bool |
IsForceInitialDirty() |
|
|
bool |
IsInternalAck() |
|
|
int32 |
IsNetReady ( |
Return whether this channel is ready for sending. |
|
bool |
IsReplay() |
|
|
bool |
IsReplayReady() |
|
|
bool |
IsReservingDestroyedChannels() |
|
|
bool |
IsUnlimitedBunchSizeAllowed() |
Used to allow connections to ignore the bunch size limitation applied before splitting into partial bunch packets, or when receiving partial bunches to reassemble. |
|
LowLevelDescribe() |
||
|
LowLevelGetRemoteAddress ( |
||
|
void |
LowLevelSend ( |
Sends a byte stream to the remote endpoint using the underlying socket |
|
void |
NotifyActorChannelCleanedUp ( |
|
|
void |
NotifyActorDestroyed ( |
Called when owning network driver receives NotifyActorDestroyed. |
|
void |
NotifyActorNetGUID ( |
Called when an actor channel is open and knows its NetGUID. |
|
void |
NotifyAnalyticsProvider() |
Notification that the NetDriver analytics provider has been updated NOTE: Can also mean disabled, e.g. during hotfix |
|
void |
NotifyConnectionUpdated() |
Notification that information about this connection may have been updated |
|
void |
PopLastStart() |
Pops the LastStart bits off of the send buffer, used for merging bunches |
|
void |
PostTickDispatch() |
Called after Driver.TickDispatch has processed received packets |
|
void |
PreTickDispatch() |
Called before Driver.TickDispatch processes received packets |
|
void |
ReadInput ( |
Read input |
|
void |
ReceivedNak ( |
Packet was negatively acknowledged. |
|
void |
ReceivedPacket ( |
Handle a packet we just received. |
|
void |
ReceivedRawPacket ( |
Allows the connection to process the raw data that was received |
|
RemoteAddressToString() |
Gets a unique ID for the connection, this ID depends on the underlying connection For IP connections this is an IP Address and port, for steam this is a SteamID |
|
|
void |
RemoveActorChannel ( |
Actor Channel Accessors |
|
void |
RemoveDestructionInfo ( |
|
|
void |
RemoveDormantReplicator |
Remove any reference to the dormant object replicator |
|
void |
ResetActorsStarvedByClassTimeMap() |
Clears the actor starvation map |
|
void |
ResetDestructionInfos() |
|
|
void |
ResetGameWorldState() |
Clear all Game specific state. Called during seamless travel |
|
void |
ResetPacketAnalytics() |
Resets the current packet stability analytics. |
|
void |
ResetPacketBitCounts() |
Sets all of the bit-tracking variables to zero. |
|
void |
ResetQueuedActorDelinquencyAnalytics() |
Resets the current delinquency analytics. |
|
void |
ResetSaturationAnalytics() |
Resets the current saturation analytics. |
|
void |
SendChallengeControlMessage ( |
Sends the NMT_Challenge message based on encryption response |
|
void |
SendChallengeControlMessage() |
Sends the NMT_Challenge message |
|
void |
SendClientEncryptionAck() |
Sends an NMT_EncryptionAck message |
|
void |
SendCloseReason ( |
Sends an NMT_CloseReason message, with the specified close reason or close reason chain. |
|
void |
SendCloseReason ( |
Sends an NMT_CloseReason message, with the specified close reason or close reason chain. |
|
int32 |
SendRawBunch ( |
Send a raw bunch |
|
int32 |
SendRawBunch ( |
|
|
void |
SetAllowExistingChannelIndex ( |
Sets whether we handle opening channels with an index that already exists, used by replays to fast forward the packet stream |
|
void |
SetAutoFlush ( |
|
|
void |
SetClientLoginState ( |
Wrapper for setting the current client login state, so we can trap for debugging, and verbosity purposes. |
|
void |
SetClientWorldPackageName ( |
|
|
void |
SetConnectionId ( |
|
|
void |
SetConnectionState ( |
|
|
void |
SetEncryptionData ( |
Sets the data for the underlying encryption packet handler component, but doesn't modify encryption enabled state. |
|
void |
SetEngineVersion ( |
Sets engine version information for compatibility purposes |
|
void |
SetExpectedClientLoginMsgType ( |
Wrapper for setting the current expected client login msg type. |
|
void |
SetForceInitialDirty ( |
|
|
void |
SetIgnoreActorBunches ( |
Sets whether or not we should ignore bunches for a specific set of NetGUIDs. |
|
void |
SetIgnoreReservedChannels ( |
Sets whether or not GetFreeChannelIndex should ignore reserved channels Should only be used with InternalAck. |
|
void |
SetInternalAck ( |
|
|
void |
SetNetVersionsOnArchive ( |
Set version information on an archive that can be used for compatibility checks |
|
void |
SetNetworkCustomVersions ( |
|
|
void |
SetPackageVersionLicenseeUE ( |
Sets the licensee package version for compatibility purposes |
|
void |
SetPackageVersionUE ( |
Sets the UE package version for compatibility purposes |
|
void |
SetPacketOSReceiveTime ( |
Sets the OS/NIC level timestamp, for the last packet that was received |
|
void |
SetPendingCloseDueToReplicationFailure() |
|
|
void |
SetPendingCloseDueToSocketSendFailure() |
|
|
void |
SetPlayerOnlinePlatformName ( |
Sets the PlayerOnlinePlatformName member. |
|
void |
SetReplay ( |
|
|
void |
SetReplicationConnectionDriver ( |
|
|
void |
SetReserveDestroyedChannels ( |
Sets whether or not we should track released channel indices, see also SetIgnoreReservedChannels Should only be used with InternalAck. |
|
void |
SetUnlimitedBunchSizeAllowed ( |
|
|
bool |
ShouldReplicateVoicePacketFrom ( |
Called to determine if a voice packet should be replicated to this connection or any of its child connections |
|
void |
SlowAssertValid() |
Make sure this connection is in a reasonable state. |
|
void |
StartTickingChannel ( |
Adds the channel to the ticking channels list. |
|
void |
StopTickingChannel ( |
Removes a channel from the ticking list directly |
|
void |
StoreDormantReplicator ( |
Store a replicator to the dormancy map and release its strong pointer to its object |
|
void |
TearDownReplicationConnectionDriver() |
|
|
void |
Tick ( |
Poll the connection. If it is timed out, close it. |
|
bool |
TrackLogsPerSecond() |
This function tracks the number of log calls per second for this client, and disconnects the client if it detects too many calls are made per second |
|
void |
TrackReplicationForAnalytics ( |
Called to notify the connection that we attempted to replicate its actors this frame. |
|
FNetLevelVis... |
UpdateLevelStreamStatusChangedTransactionId ( |
Update FNetLevelVisibilityTransactionId for server instigated level streaming |
|
void |
UpdateLevelVisibility ( |
Called by PlayerController to tell connection about client level visibility change |
|
void |
UpdatePacketSimulationSettings() |
Copies the settings from the net driver to our local copy |
|
void |
ValidateSendBuffer() |
Validates the FBitWriter to make sure it's not in an error state |
|
int32 |
WriteBitsToSendBuffer ( |
Appends the passed in data to the SendBuffer to be sent when FlushNet is called |
Name | Description | ||
---|---|---|---|
|
void |
FinishDestroy() |
Called to finish destroying the object. |
|
void |
Serialize ( |
Handles reading, writing, and reference collecting using FArchive. |
Name | Description | ||
---|---|---|---|
|
bool |
Exec ( |
Final override of Exec that asserts if called |
Name |
Description |
|
---|---|---|
|
EWriteBitsDataType |
What type of data is being written |
Name |
Description |
---|---|
FNetCloseResult |
|
FNetConnectionPacketLoss |
Percentage of packets lost during the last StatPeriod |
FNetResult |
Name |
Description |
---|---|
DEFAULT_MAX_CHANNEL_SIZE |
|
GNetConnectionBeingCleanedUp |
: set to net connection currently inside CleanUp(), for HasClientLoadedCurrentWorld() to be able to find it during PlayerController destruction, since we clear its Player before destroying it. |
Name | Description | ||
---|---|---|---|
|
DormantReplicatorMap |
The DormantReplicatorMap is deprecated in favor of the private DormantReplicatorSet. |
|
|
uint32 |
EngineNetworkProtocolVersion |
Deprecated in favor of NetworkCustomVersions, please use GetNetworkCustomVersion instead |
|
uint32 |
GameNetworkProtocolVersion |
Deprecated in favor of NetworkCustomVersions, please use GetNetworkCustomVersion instead |
|
int32 |
MaxChannelSize |
No longer used |
|
EConnectionStat... |
State |
EConnectionState State will be made private. Use GetConnectionState and SetConnectionState to access State instead. |
Name | Description | ||
---|---|---|---|
|
void |
AddDormantReplicator ( |
AddDormantReplicator has been replaced by StoreDormantReplicator and will be removed soon. |
|
TSharedPtr< ... |
FindAndRemoveDormantReplicator ( |
FindAndRemoveDormantReplicator is deprecated. Use the new version that needs to receive the owning actor. |
|
void |
FlushDormancyForObject ( |
FlushDormancyForObject has been replaced with a version that needs to receive the dormant actor. |