yimmo Module ================ Setup for the yimmo python module. --------------------------------- Definitions --------------------------------- .. c:macro:: DEFAULT_HTTP_PORT Default port to listen on for http connections. .. code-block:: c :caption: Definition #define DEFAULT_HTTP_PORT 8081 --------------------------------- Globals --------------------------------- .. c:var:: extern PyObject* pSys; Module-level object dependencies: .. code-block:: c :caption: Definition extern PyObject* pSys; .. c:var:: extern PyObject* pStderr; Environ Values (set once — we can use SetItemString for these): .. code-block:: c :caption: Definition extern PyObject* pStderr; .. c:var:: extern PyObject* pEnvironKeyInput; Environ Keys (reused — save time using SetItem): .. code-block:: c :caption: Definition extern PyObject* pEnvironKeyInput; .. c:var:: extern PyObject* pAttrWrite; Common attribute names (resued — save time using GetAttr): .. code-block:: c :caption: Definition extern PyObject* pAttrWrite; --------------------------------- Functions --------------------------------- .. c:function:: ymo_status_t ymo_wsgi_init(ymo_wsgi_proc_t* w_proc) Main WSGI initialization routine: - creates the HTTP server - spawns initial processes - multi proc mode: start watching child processes - single proc mode: start python interpretter .. c:function:: int ymo_wsgi_shutdown(void) Stop the WSGI server. .. py:module:: yimmo