FUdpSocketBuilder::BoundToPort

Sets the local port to bind the socket to.

Windows
MacOS
Linux

References

Module

Networking

Header

/Engine/Source/Runtime/Networking/Public/Common/UdpSocketBuilder.h

Include

#include "Common/UdpSocketBuilder.h"

Syntax

FUdpSocketBuilder & BoundToPort
(
    int32 Port
)

Remarks

Sets the local port to bind the socket to.

Unless specified in a subsequent call to BoundToAddress(), the local address will be determined automatically by the underlying provider.

Returns

This instance (for method chaining).

Parameters

Parameter

Description

Port

The local port number to bind the socket to.

See Also

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