MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / xmpp_process

Function xmpp_process

modules/xmpp/xmpp.c:246–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246static void xmpp_process(int rank)
247{
248 /* if this blasted server had a decent I/O loop, we'd
249 * just add our socket to it and connect().
250 */
251 close(pipe_fds[1]);
252
253 pid = my_pid();
254 *xmpp_pid = pid;
255
256 LM_DBG("started child connection process\n");
257 if (!strcmp(backend, "component")) {
258 backend_mode = XMPP_COMP;
259 xmpp_component_child_process(pipe_fds[0]);
260 }
261 else if (!strcmp(backend, "server")) {
262 backend_mode = XMPP_SERV;
263 xmpp_server_child_process(pipe_fds[0]);
264 }
265}
266
267
268/* TODO */

Callers

nothing calls this directly

Calls 3

my_pidFunction · 0.85

Tested by

no test coverage detected