SKS OCDoc
OpenComputers
Computronics
Minitel

lib/rpc.lua

rpc.allow(fn^string^, host^string^)

Enable the allow list for function fname and add host to it.

rpc.register(name^string^, fn^function^)

Registers a function to be exported by the RPC library.

rpc.deny(fn^string^, host^string^)

Enable the deny list for function fname and add host to it.

rpc.unregister(name^string^)

Removes a function from the RPC function registry, clearing any ACL rules.

rpc.call(hostname^string^, fn^string^, ...): boolean

Calls exported function fn on host hostname, with parameters ..., returning whatever the function returns, or false.

rpc.proxy(hostname^string^, filter^string^): table

Returns a component.proxy()-like table from the functions on hostname with names matching filter.

© ShadowKat Studios
The software used to generate this page is licensed under the Mozilla Public License version 2 and can be found here