Skip to content
class method

Socket::UDPSource.new

(::Addrinfo remote_address, ::Addrinfo local_address) { (::String) -> void } -> ::Socket::UDPSource
new(remote_address, local_address, &reply_proc)

remote_address is an Addrinfo object.

local_address is an Addrinfo object.

reply_proc is a Proc used to send reply back to the source.

See also #reply also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0