Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- peripheral.find("modem", rednet.open)
- write("Finding database server ID...")
- rednet.broadcast("database", "dns-lookup")
- _, body = rednet.receive("dns-record-database")
- serverId = tonumber(body)
- print(" Done!")
- while true do
- local input = read()
- rednet.send(serverId, input, "database-file-request")
- _, body = rednet.receive("database-file-response")
- print(body)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement