local params = ...

local network = require("network")

if params.event == "requestfrom" then
    network.sendto(
        params.data.handle,
        params.data.user_data .. params.data.datagram,
        params.data.address,
        params.data.port)
    return
end

local handle = network.udp();
network.setsockname(handle, "*", "8021")
network.sendto(handle, "Is there anyone?", "192.168.1.255", "8021")
network.requestfrom(handle, "this_script_name", "Hi, ")