Remote Components
marcin212 edited this page Jun 11, 2014
·
9 revisions
rc-server.lua
is the aplication.
rc-client.lua
is the library.
proxy(address:string):table
Gets a 'proxy' object for a component that provides all methods the component provides as fields.
If there are no errors, rc-client.proxy(address).function_name()
returns true
, plus any values returned by the call. Otherwise, it returns false
, plus the error message.
rc-server.lua
is running on the computer in network 2.
rc-client.lua
is in the /lib
folder on computer in network 1.
Example program on computer in network 1:
I renamed rc-client.lua
to rc.lua
on this screen.