Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local dns = {}
- function dns.register(modem, name)
- modem.open(1)
- modem.transmit(0, 1, {type = "put", name = name})
- while true do
- _, _, _, _, msg = os.pullEvent("modem_message")
- if msg.type == "put" and msg.name == name then
- return msg.channel
- end
- end
- end
- return dns
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement