FTcpSocketBuilder::BoundToAddress

Sets the local address to bind the socket to.

Windows
MacOS
Linux

References

Module

Networking

Header

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

Include

#include "Common/TcpSocketBuilder.h"

Syntax

FTcpSocketBuilder BoundToAddress
(
    const FIPv4Address & Address
)

Remarks

Sets the local address to bind the socket to.

Unless specified in a subsequent call to BoundToPort(), a random port number will be assigned by the underlying provider.

Returns

This instance (for method chaining).

Parameters

Parameter

Description

Address

The IP address 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