Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dofile("common")
- openRednet()
- function processPacket(t)
- if type(t.type) ~= "string" then print("Got packet with non-string type.. something is wrong.") end
- if t.type == "connect" then
- print("Client '"..t.id.."' connected!")
- end
- end
- print("Waiting for first client..")
- recvWithCallback(processPacket)
Advertisement
Add Comment
Please, Sign In to add comment