yimmo Module

Setup for the yimmo python module.

Definitions

DEFAULT_HTTP_PORT

Default port to listen on for http connections.

Definition
#define DEFAULT_HTTP_PORT 8081

Globals

extern PyObject *pSys;

Module-level object dependencies:

Definition
extern PyObject* pSys;
extern PyObject *pStderr;

Environ Values (set once — we can use SetItemString for these):

Definition
extern PyObject* pStderr;
extern PyObject *pEnvironKeyInput;

Environ Keys (reused — save time using SetItem):

Definition
extern PyObject* pEnvironKeyInput;
extern PyObject *pAttrWrite;

Common attribute names (resued — save time using GetAttr):

Definition
extern PyObject* pAttrWrite;

Functions

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

int ymo_wsgi_shutdown(void)

Stop the WSGI server.