Next: Network interface functions, Previous: Port configurations, Up: Embedding API [Contents][Index]
The most important functions are svz_boot
and svz_halt
which must be the first and the last call to the core API.
Initialize the core library.
client is typically a program’s argv[0]
.
If NULL
, take it to be ‘anonymous’.
Return the number of seconds since svz_boot
was called,
or -1 if svz_boot
has not yet been called.
Finalization of the core library.
There are several runtime parameters indicating the abilities of the libserveez core API:
SVZ_RUNPARM_VERBOSITY
The log-level verbosity.
SVZ_RUNPARM_MAX_SOCKETS
Maxium number of clients allowed to connect.
These are manipulated by svz_runparm
and two convenience macros,
both of which accept nick, a C token without the prefix
‘SVZ_RUNPARM_’ (e.g., VERBOSITY
).
Set or get a runtime parameter. If a is -1, return the value of runtime parameter b. If a specifies a runtime parameter, set it to b and return 0. Otherwise, return -1.
Return the value of runtime parameter nick.
Set the runtime paramater nick to have value val, an integer.