Api/netlib.gettable()

From Minux Wiki
Revision as of 02:37, 14 October 2024 by Shorun (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

netlib function used to receive a table expected to be sent with "sendtable"

timeout argument is optional, if provided acts like a timeout just as rednet.receive() does.

if no timeout is provided, listens untill it hears it's call.



usage:

local table = netlib.gettable(client, timeout)


output:

returns the table if successfull,

returns false if failed

returns nil if no contact was made