| 3 | #pragma comment(lib, "wsock32") |
| 4 | |
| 5 | static void echo(ACL_VSTREAM *client) |
| 6 | { |
| 7 | int ret; |
| 8 | char buf[1024]; |
| 9 | |
| 10 | while (1) { |
| 11 | ret = acl_vstream_gets(client, buf, sizeof(buf)); |
| 12 | if (ret == ACL_VSTREAM_EOF) { |
| 13 | break; |
| 14 | } |
| 15 | |
| 16 | //ret = acl_vstream_fprintf(client, "hello world\r\nhello world\r\nhello world\r\n"); |
| 17 | ret = acl_vstream_fprintf(client, "hello world\r\n"); |
| 18 | if (ret == ACL_VSTREAM_EOF) |
| 19 | break; |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | int main(int argc, char *argv[]) |
| 24 | { |
no test coverage detected
searching dependent graphs…