| 16 | static int timeout = 0; |
| 17 | |
| 18 | static 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 | |
| 34 | static void reply_client(ACL_VSTREAM *client) |
| 35 | { |
no test coverage detected
searching dependent graphs…