FInternetAddr::SetPort

Sets the port number from a host byte order int

Windows
MacOS
Linux

References

Module

Sockets

Header

/Engine/Source/Runtime/Sockets/Public/IPAddress.h

Include

#include "IPAddress.h"

Syntax

void SetPort
(
    int32 InPort
)

Remarks

Sets the port number from a host byte order int

Parameters

Parameter

Description

InPort

the new port to use (must convert to network byte order)

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