setopt
setopt(sock::UDPSocket; multicast_loop = nothing, multicast_ttl=nothing, enable_broadcast=nothing, ttl=nothing)
Set UDP socket options. multicast_loop
: loopback for multicast packets (default: true
). multicast_ttl
: TTL for multicast packets. enable_broadcast
: flag must be set to true
if socket will be used for broadcast messages, or else the UDP system will return an access error (default: false
). ttl
: Time-to-live of packets sent on the socket.
Examples
See Also
accept, bind, :@spawn, connect, fetch, getaddrinfo, gethostname, getipaddr, getsockname, init_worker, IPv4, IPv6, isready, issocket, kill, listen, recv, recvfrom, remotecall, remotecall_fetch, remotecall_wait, RemoteRef, send, setopt,User Contributed Notes
Add a Note
The format of note supported is markdown, use triple backtick to start and end a code block.