Next: Configuration, Up: Server functions [Contents][Index]
This section contains functions dealing with the list of known servers in the core library of Serveez, also with the basics like creation and destruction of such servers.
Call func for each server, passing additionally the second arg closure.
Find a server instance by the given configuration structure cfg.
Return NULL
if there is no such configuration in any server
instance.
Return a list of clients (socket structures) which are associated
with the given server instance server. If there is no such
socket, return NULL
. Caller should svz_array_destroy
the returned array.
Get the server instance with the given instance name name.
Return NULL
if there is no such server yet.
If direction is non-zero, run the initializers of all servers, returning -1 if some server did not think it is a good idea to run. Otherwise, run the local finalizers for all server instances.