#include "frdi.h"
Functions | |
frdi_listener * | frdiListenerNew (frdi_app *self, frdi_handler *spawner, int port_number) |
void | frdiSpawnedThreadRun (frdi_connection *connection) |
void | frdiListenerAccept (frdi_listener *listener) |
void | frdiListenerThreadRun (frdi_listener *listener) |
void | frdiListenerThreadLaunch (frdi_listener *listener) |
void | frdiListenerStart (frdi_listener *listener) |
void | frdiListenerStop (frdi_listener *listener) |
void | frdListenerFree (frdi_listener *listener) |
Any time a new thread is created there will be a triplet of functions, most likely (but not necessarily) with names of the form:
|
create a new listener object |
|
hand of the newly spawned connection to the registered handler (See THREAD CREATION PATTERN) |
|
Accept new connections |
|
keep listening (See THREAD CREATION PATTERN) |
|
start seperate thread to keep listening (See THREAD CREATION PATTERN) |
|
start listening |
|
stop listening |
|
free up memory |