Next: Server sockets, Previous: Server core, Up: Server functions [Contents][Index]
This section describes the main server loop functionality. There two modes of operation. The default mode as used in Serveez is to jump into the loop and wait until the core library drops out of it. In the other mode, the caller tells the Serveez core library to scan (and process) its socket chain once and return immediately. Thus, caller is able to issue additional functionality in between each pass, useful if such functionality cannot be handled within the timers (notifiers) of servers and sockets.
Initialize top-of-cycle state.
Call this function once before using svz_loop_one
.
Clean up bottom-of-cycle state.
Call this function once after using svz_loop_one
.
Loop, serving. In other words, handle all signals, incoming and outgoing connections and listening server sockets.
Handle all things once.
This function is called regularly by svz_loop
.