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

Function stdpr

src/webadmin.c:25–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23};
24
25static void stdpr(struct printparam* pp, char *buf, int inbuf){
26 if((pp->inbuf + inbuf > 1024) || !buf) {
27 socksend(pp->cp->clisock, (unsigned char *)pp->buf, pp->inbuf, conf.timeouts[STRING_S]);
28 pp->inbuf = 0;
29 if(!buf) return;
30 }
31 if(inbuf >= 1000){
32 socksend(pp->cp->clisock, (unsigned char *)buf, inbuf, conf.timeouts[STRING_S]);
33 }
34 else {
35 memcpy(pp->buf + pp->inbuf, buf, inbuf);
36 pp->inbuf += inbuf;
37 }
38}
39
40static void stdcbf(void *cb, char *buf, int inbuf){
41 int delay = 0;

Callers 3

stdcbfFunction · 0.85
printstrFunction · 0.85
adminchildFunction · 0.85

Calls 1

socksendFunction · 0.85

Tested by

no test coverage detected