Rednet (API)

From ComputerCraft Wiki
Revision as of 15:57, 28 January 2012 by Larethian (Talk | contribs) (Created page with "The rednet API provides a simple computer networking model over RedPower bundled cables. Functions for specifiying sides to be used for networking; *rednet.open( side ) *redn...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The rednet API provides a simple computer networking model over RedPower bundled cables.

Functions for specifiying sides to be used for networking;

  • rednet.open( side )
  • rednet.close( side )

Functions for sending messages to other computers;

  • rednet.announce()
  • rednet.send( receiverID, message )
  • rednet.broadcast( message )

Functions for receiving messages:

  • rednet.receive( timeout ) -- Returns: senderID, message
  • You can also handle the "rednet_message" event to receive messages without calling receive(), the arguments are the same as the receive() return values.