UClientUnitTest::GetNextServerPorts

Determine the next unique server ports to use - incremented to a new unique number, internally

Windows
MacOS
Linux

References

Module

NetcodeUnitTest

Header

/Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Classes/ClientUnitTest.h

Include

#include "ClientUnitTest.h"

Source

/Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Private/ClientUnitTest.cpp

Syntax

static void GetNextServerPorts
(
    int32 & OutServerPort,
    int32 & OutBeaconPort,
    bool bAdvance
)

Remarks

Determine the next unique server ports to use - incremented to a new unique number, internally

Parameters

Parameter

Description

OutServerPort

Outputs the next server port

OutBeaconPort

Outputs the next beacon port

bAdvance

Whether to advance the internal unique counter, for ports (to e.g. get ports for unlaunched unit tests)

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