Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/tellojs/src/deps.ts>dgram.Socket#setMulticastTTL

The easy to use tello library written in typescript to control your drones!
Latest
method dgram.Socket.prototype.setMulticastTTL
import { dgram } from "https://deno.land/x/tellojs@v1.2.2/src/deps.ts";
const { Socket } = dgram;

Sets the IP_MULTICAST_TTL socket option. While TTL generally stands for "Time to Live", in this context it specifies the number of IP hops that a packet is allowed to travel through, specifically for multicast traffic. Each router or gateway that forwards a packet decrements the TTL. If the TTL is decremented to 0 by a router, it will not be forwarded.

The ttl argument may be between 0 and 255. The default on most systems is 1.

This method throws EBADF if called on an unbound socket.

Parameters

ttl: number