Advertisement
abstract_abstract

domain_registry.lua

Oct 7th, 2024
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. rednet.open("left")
  2.  
  3. local name = "domain_name"
  4. local id = os.getComputerID()
  5.  
  6. local data = {name = name, id = id}
  7. local message = textutils.serialise(data)
  8.  
  9. rednet.send(126, message, "dns_register")
  10.  
  11. local senderID, message, protocol = rednet.receive("dns_ack")
  12. print(message)
  13.  
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement