Squid internals The Helper API (src/helper.c) (ctd.) How it is used Create a helper set hset = helperCreate("helper process set"); Set the redirector type hset->cmdline = "commandline"; hset->n_to_start = number_to_start; hset->ipc_type = IPC_TCP_SOCKET; Open the servers helperOpenServers(hset); Submit a request helperSubmit(hset, buf, callback, callbackdata); /* Note that buf is a NULL-terminated string */ The reply is given to callback void helper_callback(void *callbackdata, char *reply); /* Note that reply is a NULL-terminated string */ Shut down the helper set helperShutdown(hset); helperFree(hset);