Navigation
API > API/Plugins > API/Plugins/OnlineSubsystemUtils
| Name | UIpConnection |
| Type | class |
| Header File | /Engine/Plugins/Online/OnlineSubsystemUtils/Source/OnlineSubsystemUtils/Classes/IpConnection.h |
| Include Path | #include "IpConnection.h" |
Syntax
UCLASS (MinimalAPI, Transient, Config=Engine)
class UIpConnection : public UNetConnection
Inheritance Hierarchy
- FExec → UPlayer → UNetConnection → UIpConnection
- UObjectBase → UObjectBaseUtility → UObject → UPlayer → UNetConnection → UIpConnection
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UIpConnection
(
const FObjectInitializer& ObjectInitializer |
UIpConnection | IpConnection.h |
Structs
| Name | Remarks |
|---|---|
| FSocketSendResult | Struct to hold the result of a socket SendTo call. |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| FIpConnectionHelper | friend | IpConnection.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DeferredCleanupReadyCount | std::atomic< int32 > | The number of 'DeferredCleanupSockets' entries ready for cleanup (may be set by async send tasks) | IpConnection.h | |
| DeferredCleanupSockets | TArray< TSharedPtr< FSocket > > | List of previously active sockets for this connection, whose cleanup is deferred for multithreaded safety and to prevent remote ICMP errors | IpConnection.h | |
| DeferredCleanupTimeCheck | double | The time at which a socket was last queued for deferred cleanup | IpConnection.h | |
| InitialConnectLastLogSocketSendCount | int32 | The value of 'InitialConnectSocketSendCount' the last time there was an initial connect diagnostic log | IpConnection.h | |
| InitialConnectLastLogTime | double | The last time initial connect diagnostics put out a log | IpConnection.h | |
| InitialConnectSocketSendCount | int32 | The number of socket-level sends that have occurred during initial connect | IpConnection.h | |
| LastSendTask | FGraphEventRef | If net.IpConnectionUseSendTasks is true, reference to the last send task used as a prerequisite for the next send task. | IpConnection.h | |
| Resolver | TPimplPtr< UE::Net::Private::FNetConnectionAddressResolution > | NetDriver level early address resolution (may pass work on to NetConnection level address resolution) | IpConnection.h | |
| SocketError_RecvDelayStartTime | double | Cached time of the first recv socket error that will be used to compute disconnect delay. | IpConnection.h | |
| SocketError_SendDelayStartTime | double | Cached time of the first send socket error that will be used to compute disconnect delay. | IpConnection.h | |
| SocketErrorDisconnectDelay | float | Instead of disconnecting immediately on a socket error, wait for some time to see if we can recover. | IpConnection.h |
|
| SocketPrivate | TSharedPtr< FSocket > | The socket used for communication (typically shared between NetConnection's, Net Address Resolution, and the NetDriver) | IpConnection.h | |
| SocketSendResults | TArray< FSocketSendResult > | Socket SendTo results from send tasks if net.IpConnectionUseSendTasks is true | IpConnection.h | |
| SocketSendResultsCriticalSection | FCriticalSection | Critical section to protect SocketSendResults | IpConnection.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSocket * GetSocket() |
Gets the cached socket for this connection. | IpConnection.h | |
void WaitForSendTasks () |
If CVarNetIpConnectionUseSendTasks is true, blocks until there are no outstanding send tasks. | IpConnection.h |
Overridden from UNetConnection
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void CleanUp() |
IpConnection.h | ||
virtual float GetTimeoutValue() |
IpConnection.h | ||
virtual void InitBase
(
UNetDriver* InDriver, |
IpConnection.h | ||
virtual void InitLocalConnection
(
UNetDriver* InDriver, |
IpConnection.h | ||
virtual void InitRemoteConnection
(
UNetDriver* InDriver, |
IpConnection.h | ||
virtual FString LowLevelDescribe() |
IpConnection.h | ||
virtual FString LowLevelGetRemoteAddress
(
bool bAppendPort |
IpConnection.h | ||
virtual void LowLevelSend
(
void* Data, |
IpConnection.h | ||
virtual void ReceivedRawPacket
(
void* Data, |
IpConnection.h | ||
virtual void Tick
(
float DeltaSeconds |
IpConnection.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void DisableAddressResolution() |
Disables address resolution by pushing the disabled flag into the status field. | IpConnection.h |
Overridden from UNetConnection
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void HandleConnectionTimeout
(
const FString& ErrorStr |
Handles a NetConnection timeout. | IpConnection.h |