MCPcopy Index your code
hub / github.com/3proxy/3proxy / tcppmchild

Function tcppmchild

src/tcppm.c:16–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14#define RETURN(xxx) { param->res = xxx; goto CLEANRET; }
15
16void * tcppmchild(struct clientparam* param) {
17 int res;
18
19 if(!param->hostname)parsehostname((char *)param->srv->target, param, ntohs(param->srv->targetport));
20 param->operation = CONNECT;
21 res = (*param->srv->authfunc)(param);
22 if(res) {RETURN(res);}
23 RETURN (sockmap(param, conf.timeouts[CONNECTION_L]));
24CLEANRET:
25
26 (*param->srv->logfunc)(param, NULL);
27 freeparam(param);
28 return (NULL);
29}
30
31#ifdef WITHMAIN
32struct proxydef childdef = {

Callers

nothing calls this directly

Calls 3

parsehostnameFunction · 0.85
sockmapFunction · 0.85
freeparamFunction · 0.85

Tested by

no test coverage detected