in my eyes the would look something like so:
local status, con = rednet.connect("wilcosgamehost") -- takes first argument as a string for hosts, and number for non-hosts
if status == 1 then -- diffrent status codes, like in http
-- succesfull, lets request the game data
con.send({"gameinfo"})
local msg = con.receive()
if msg[1] == "bomberman" then con.disconnect() end -- just an example
end
as you can see when you conenct a status code and a connection object is returned that can be used to send and receive messages. also the connection object also pings automaticly so when you lose connection the object will tell you its because of a time out. maybe you could check it like
if con.error == rednet.timeout then print "timed out, check your rednet connection" end
why this should be implemented:
this allows for a more controlled and regulated system. it also allows for a more easy communication and connection check.
of course all of you always looking to turn down suggestions will say, "but this is already possible with current rednet features". yeah i know, but dan did implement all of these rednet features, liek hosting and chat, and i am fairly certain that he knew that it was already possible without these new built-in features. this absolutly does not take weeks to code liek PDA's its a nice little feature that will improve rednet overall and make it a bit more regulated and realistic too.
well, i hope you all comment and do the poll, be sure to let me know what you think