MCPcopy Create free account
hub / github.com/acl-dev/acl / reply_client2

Function reply_client2

lib_acl/samples/vstream/main.cpp:18–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16static int timeout = 0;
17
18static void reply_client2(ACL_VSTREAM *client)
19{
20 char buf[1024];
21 int ret;
22
23 while (1) {
24 ret = acl_vstream_gets(client, buf, sizeof(buf) - 1);
25 if (ret == ACL_VSTREAM_EOF)
26 break;
27 buf[ret] = 0;
28 acl_vstream_printf("get one line:%s", buf);
29 if (acl_vstream_writen(client, buf, ret) == ACL_VSTREAM_EOF)
30 break;
31 }
32}
33
34static void reply_client(ACL_VSTREAM *client)
35{

Callers 1

vstream_serverFunction · 0.85

Calls 3

acl_vstream_getsFunction · 0.85
acl_vstream_printfFunction · 0.85
acl_vstream_writenFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…