FSocket::SetReuseAddr

Sets whether a socket can be bound to an address in use.

Windows
MacOS
Linux

References

Module

Sockets

Header

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

Include

#include "Sockets.h"

Syntax

bool SetReuseAddr
(
    bool bAllowReuse
)

Remarks

Sets whether a socket can be bound to an address in use.

Returns

true if the call succeeded, false otherwise.

Parameters

Parameter

Description

bAllowReuse

Whether to allow reuse or not.

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