libxrdeveloper's documentation
gboolean xr_server_simple ( const char *  cert,
int  threads,
const char *  bind,
xr_servlet_def **  servlets,
GError **  err 
)

Use this function as a simple way to quickly start a server.

Parameters:
certCombined PEM file with server certificate and private.
threadsNumber of threads in the pool.
bindPort and IP address to bind to.
servletsServlet definition objects array (NULL termianted).
errPointer to the variable to store error to on error.
Returns:
Function returns FALSE on error, TRUE on success.
Documentation for libxr, Tue Jun 7 2011 18:50:31.