rpcc.luadoc 538 B

123456789101112131415161718192021222324252627282930313233343536
  1. ---[[
  2. LuCI RPC Client.
  3. @cstyle instance
  4. ]]
  5. module "luci.rpcc"
  6. ---[[
  7. Create a new JSON-RPC stream client.
  8. @class function
  9. @param fd File descriptor
  10. @param v1 Use protocol version 1.0
  11. @return RPC Client
  12. ]]
  13. ---[[
  14. Request an RP call and get the response.
  15. @class function
  16. @name Client.request
  17. @param method Remote method
  18. @param params Parameters
  19. @param notification Notification only?
  20. @return response
  21. ]]
  22. ---[[
  23. Create a transparent RPC proxy.
  24. @class function
  25. @name Client.proxy
  26. @param prefix Method prefix
  27. @return RPC Proxy object
  28. ]]