FSocket::SetMulticastTtl

Sets the time to live (TTL) for multicast datagrams.

Windows
MacOS
Linux

References

Module

Sockets

Header

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

Include

#include "Sockets.h"

Syntax

bool SetMulticastTtl
(
    uint8 TimeToLive
)

Remarks

Sets the time to live (TTL) for multicast datagrams.

The default TTL for multicast datagrams is 1, which prevents them from being forwarded beyond the local subnet. Higher values will allow multicast datagrams to be sent into neighboring subnets, if multicast capable routers are present.

Parameters

Parameter

Description

TimeToLive

Number of hops the datagram can make.

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