Navigation
Unreal Engine C++ API Reference > Runtime > Sockets > FSocket
- FSocket::SetMulticastTtl()
- FSocketEOS::SetMulticastTtl()
References
Module | Sockets |
Header | /Engine/Source/Runtime/Sockets/Public/Sockets.h |
Include | #include "Sockets.h" |
bool SetMulticastTtl
&40;
uint8 TimeToLive
&41;
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
Name | Description |
---|---|
TimeToLive | Number of hops the datagram can make. |