Advertisement
karelvysinka

server

May 7th, 2015
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 KB | None | 0 0
  1. -----------------------------------------------
  2. --DISPLAY LAMP SERVER 0.1 PASTEBIN: 89JdmZud
  3. -----------------------------------------------
  4. function Send(id,message)
  5.   rednet.open("left")
  6.   rednet.send(id,message)
  7.   print("Message:")
  8.   print(message)
  9.   print("ID:")
  10.   print (id)
  11.   print("Has been send...")
  12. end
  13.  
  14. --start program
  15. -----------------------------------------------
  16. while true do
  17.   terminal.clear()
  18.   print("Starting program SERVER...")
  19.   print("Message:")
  20.   messageRead = read()
  21.   print("ID:")
  22.   id = read()
  23.   Send(id,messageRead)
  24. end
  25. -----------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement