Skip to content
class method

Socket.udp_server_loop_on

(::UDPSocket sockets) { (::String, ::Socket::UDPSource) -> void } -> void
Socket.udp_server_loop_on(sockets) {|msg, msg_src| ... }

Run UDP/IP server loop on the given sockets.

The return value of Socket.udp_server_sockets is appropriate for the argument.

It calls the block for each message received.