Displaying 1 result from an estimated 1 matches for "clientdone".
Did you mean:
clientdom
2023 Aug 31
0
[RFC PATCH v2 2/2] test/vsock: shutdowned socket test
...eer_cid, 1234);
>+ if (fd < 0) {
>+ perror("connect");
>+ exit(EXIT_FAILURE);
>+ }
>+
>+ if (shutdown(fd, SHUT_WR)) {
>+ perror("shutdown");
>+ exit(EXIT_FAILURE);
>+ }
>+
>+ test_stream_check_sigpipe(fd);
>+
>+ control_writeln("CLIENTDONE");
>+
>+ close(fd);
>+}
>+
>+static void test_stream_shutwr_server(const struct test_opts *opts)
>+{
>+ int fd;
>+
>+ fd = vsock_stream_accept(VMADDR_CID_ANY, 1234, NULL);
>+ if (fd < 0) {
>+ perror("accept");
>+ exit(EXIT_FAILURE);
>+ }
&g...