Api/netlib.gettable(): Difference between revisions
Jump to navigation
Jump to search
(Created page with "netlib function used to receive a table expected to be sent with "sendtable" sendtable will first send a regular rednet message with the string "sendtable", when you catch this you know a table is comming next '''usage:''' local table = netlib.gettable(client) '''output:''' returns the table if successfull, returns false if failed") |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Api/netlib|netlib function]] used to receive a table expected to be sent with "sendtable" | [[Api/netlib|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:''' | '''usage:''' | ||
local table = netlib.gettable(client) | local table = netlib.gettable(client, timeout) | ||
Line 14: | Line 18: | ||
returns false if failed | returns false if failed | ||
returns nil if no contact was made |
Latest revision as of 02:37, 14 October 2024
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