UIpNetDriver::GetClientPort

Returns the port number to use when a client is creating a socket.

Windows
MacOS
Linux

References

Module

OnlineSubsystemUtils

Header

/Engine/Plugins/Online/OnlineSubsystemUtils/Source/OnlineSubsystemUtils/Classes/IpNetDriver.h

Include

#include "IpNetDriver.h"

Source

/Engine/Plugins/Online/OnlineSubsystemUtils/Source/OnlineSubsystemUtils/Private/IpNetDriver.cpp

Syntax

virtual int GetClientPort()

Remarks

Returns the port number to use when a client is creating a socket. Platforms that can't use the default of 0 (system-selected port) may override this function.

Returns

The port number to use for client sockets. Base implementation returns 0.

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