Advertisement
tom2018

webserver

Nov 9th, 2012
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. --tom2018--
  2. rednet.open("top")
  3. url = "test.org"
  4. print("Hosting "..url)
  5. datalocation = "data"
  6. while true do
  7. while y ~= url do
  8. x,y = rednet.receive()
  9. end
  10. file = fs.open(datalocation,"r")
  11. rednet.send(x,file.readAll())
  12. file.close()
  13. y = nil
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement