FSocket::SetBroadcast

Sets a socket into broadcast mode (UDP only).

Windows
MacOS
Linux

References

Module

Sockets

Header

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

Include

#include "Sockets.h"

Syntax

bool SetBroadcast
(
    bool bAllowBroadcast
)

Remarks

Sets a socket into broadcast mode (UDP only).

Returns

true if successful, false otherwise.

Parameters

Parameter

Description

bAllowBroadcast

Whether to enable broadcast 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