A bunch of programs for computercraft
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
410 B

function send(dest, message)
if ~isnumber(dest) then
cnt.lookup(dest)
end
message=textUtil.serialize(os.getComputerId(),dest,message)
route(message)
end
rednet.send(
end
function syn
function acksyn
function ack
function receive
function join
function broadcast
function locate(host_id)
function route(message)
tmp=textUtil.unserialize(message)
dest = tmp[2]
next_hop=locate(dest)