method udp

Documentation for method udp, assembled from the following types:

class IO::Socket::Async

From IO::Socket::Async

(IO::Socket::Async) method udp

method udp(IO::Socket::Async:U: :$broadcast --> IO::Socket::Async)

Returns an initialised IO::Socket::Async client object that is configured to send UDP messages using print-to or write-to. The :broadcast adverb will set the SO_BROADCAST option which will allow the socket to send packets to a broadcast address.