Advertisement
Guest User

shitNetClient

a guest
Aug 23rd, 2014
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. rednet.open("top")
  2. term.clear()
  3. term.setCursorPos(1,1)
  4. print("Enter site: ")
  5. input = read()
  6. servloc = string.find(input,"/")
  7. protocol = string.sub(input, servloc)
  8. page = string.sub(input,1,servloc - 1)
  9. print("Connecting to "..message..protocol)
  10. rednet.broadcast(page,protocol)
  11. waitForResponse = true
  12.  
  13. while waitForResponse do
  14. print("Waiting for server...")
  15.   id,response = rednet.receive("response")
  16.   textutils.slowPrint(response)
  17.   print("From Server "..id)
  18.   waitForResponse = false
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement