USteamClient

Basic unit test for verifying simple client connection to a server, using the Steam net driver.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

NetcodeUnitTest

Header

/Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Classes/UnitTests/Engine/SteamClient.h

Include

#include "UnitTests/Engine/SteamClient.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)()
class USteamClient : public UIPClient

Remarks

Basic unit test for verifying simple client connection to a server, using the Steam net driver.

Variables

Name Description

Protected variable

bool

 

bPendingConnect

Whether or not ConnectMinimalClient is pending

Protected variable

FString

 

ServerSteamAddress

The server Steam address, parsed from the server log

Constructors

Name Description

Public function

USteamClient

(
    const FObjectInitializer& ObjectIn...
)

USteamClient

Overridden from UClientUnitTest

Name Description

Protected function Virtual

bool

 

ConnectMinimalClient

(
    const TCHAR* InNetID
)

Connects a minimal client, to the launched/launching server

Protected function Virtual

FString

 

ConstructServerParameters()

Puts together the commandline parameters the server should use, based upon the unit test settings

Protected function Virtual

void

 

NotifyAlterMinClient

(
    FMinClientParms& Parms
)

Gives subclass UnitTest's an opportunity to alter the MinimalClient setup parameters

Overridden from UProcessUnitTest

Name Description

Protected function Virtual

void

 

NotifyProcessLog

(
    TWeakPtr< FUnitTestProcess > InProc...,
    const TArray< FString >& InLogLine...
)

Interface for process unit tests For implementation in subclasses, for helping to verify success/fail upon completion of unit tests NOTE: Not called again once VerificationState is set WARNING: Be careful when iterating InLogLines in multiple different for loops, if the sequence of detected logs is important

Overridden from UUnitTest

Name Description

Protected function Virtual

void

 

InitializeEnvironmentSettings()

Finishes initializing unit test settings, that rely upon the current unit test environment being loaded

Protected function Virtual

bool

 

ValidateUnitTestSettings

(
    bool bCDOCheck
)

Validate that the unit test settings/flags specified for this unit test, are compatible with one another, and that the engine settings/environment, support running the unit test.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss