From Gray Shama, 7 Years ago, written in Plain Text.
- go back
Embed
Viewing differences between and Untitled
  1. blade_handle_t
  2.  
  3. Registry of modules, and transports.
  4.  
  5. register_module(module)
  6. register_transport(transport)
  7.  
  8.  
  9. blade_module_t
  10.  
  11. Generalized module object to register into the handle.
  12.  
  13.  
  14. blade_module_callbacks_t
  15.  
  16. Abstracted module callbacks to register with the module.
  17.  
  18. onload(out module, handle)
  19. onunload(module)
  20. onstartup(module, config)
  21. onshutdown(module)
  22.  
  23.  
  24. blade_transport_callbacks_t
  25.  
  26. Abstracted transport callbacks to register with the transport.
  27.  
  28. onconnect(module, identity)
  29. onpulse(connection) - this could work backwards, and register a callback (per state?) to the connection during creation
  30.  
  31.  
  32. blade_connection_t
  33.  
  34. Generalized connection object to wrap a transport implementation, runs worker thread.
  35.  
  36. startup(connection)
  37. shutdown(connection)
  38. disconnect(connection)
  39. transport_get(connection)
  40. state_get(connection)
  41. state_set(connection)
  42. sending_push(connection, identity, message)
  43. sending_pop(connection, out identity, out message)
  44. receiving_push(connection, identity, message)
  45. receiving_pop(connection, out identity?, out message)
  46.  
  47.  
  48. blade_identity_t
  49.  
  50. Generalized identity object to wrap a target entity (can represent group or individual).
  51.  
  52. tostring(identity)
  53.  
  54.  
  55. blade_transport_wss_t
  56.  
  57. Implementation of secure websocket transport, contains ks_socket_t/kws_t for transport implementation specific operations.
  58.