Lines Matching refs:h0

84     zx_handle_t h0, h1;
85 status = zx_socket_create(0, &h0, &h1);
88 zx_signals_t signals0 = get_satisfied_signals(h0);
100 status = zx_socket_write(h0, 0u, big_buf, kAllSize / 16, &count);
104 signals0 = get_satisfied_signals(h0);
114 signals0 = get_satisfied_signals(h0);
120 status = zx_object_signal_peer(h0, ZX_SOCKET_WRITABLE, 0u);
123 status = zx_object_signal_peer(h0, 0u, ZX_USER_SIGNAL_1);
126 signals0 = get_satisfied_signals(h0);
134 signals0 = get_satisfied_signals(h0);
137 zx_handle_close(h0);
148 zx_handle_t h0, h1;
149 status = zx_socket_create(0, &h0, &h1);
154 status = zx_object_set_property(h0, ZX_PROP_SOCKET_RX_THRESHOLD,
158 status = zx_object_set_property(h0, ZX_PROP_SOCKET_RX_THRESHOLD,
179 status = zx_object_set_property(h0, ZX_PROP_SOCKET_RX_THRESHOLD,
182 status = zx_object_get_property(h0, ZX_PROP_SOCKET_RX_THRESHOLD,
203 status = zx_handle_duplicate(h0, ZX_RIGHT_SAME_RIGHTS, &h0_clone);
220 zx_signals_t signals0 = get_satisfied_signals(h0);
243 signals0 = get_satisfied_signals(h0);
260 signals0 = get_satisfied_signals(h0);
282 signals0 = get_satisfied_signals(h0);
301 status = zx_socket_read(h0, 0u, buf2, bufsize, &count);
305 signals0 = get_satisfied_signals(h0);
318 zx_handle_close(h0);
344 zx_handle_t h0, h1;
345 status = zx_socket_create(0, &h0, &h1);
348 signals0 = get_satisfied_signals(h0);
361 signals0 = get_satisfied_signals(h0);
369 status = zx_socket_write(h0, 0u, "abcde", 5u, &count);
381 status = zx_socket_read(h0, 0u, rbuf, sizeof(rbuf), &count);
386 status = zx_socket_read(h0, 0u, rbuf, 1u, &count);
389 signals0 = get_satisfied_signals(h0);
397 zx_handle_close(h0);
418 zx_handle_t h0, h1;
419 status = zx_socket_create(0, &h0, &h1);
422 signals0 = get_satisfied_signals(h0);
432 status = zx_socket_write(h0, ZX_SOCKET_SHUTDOWN_READ, NULL, 0u, NULL);
435 signals0 = get_satisfied_signals(h0);
441 status = zx_socket_write(h0, 0u, "abcde", 5u, &count);
453 status = zx_socket_read(h0, 0u, rbuf, sizeof(rbuf), &count);
458 status = zx_socket_read(h0, 0u, rbuf, 1u, &count);
461 signals0 = get_satisfied_signals(h0);
469 zx_handle_close(h0);
527 zx_handle_t h0, h1;
528 status = zx_socket_create(0, &h0, &h1);
531 signals0 = get_satisfied_signals(h0);
544 signals0 = get_satisfied_signals(h0);
552 status = zx_socket_write(h0, 0u, "abcde", 5u, &count);
564 status = zx_socket_read(h0, 0u, NULL, 0, &count);
569 status = zx_socket_read(h0, 0u, rbuf, sizeof(rbuf), &count);
574 status = zx_socket_read(h0, 0u, rbuf, 1u, &count);
577 signals0 = get_satisfied_signals(h0);
585 zx_handle_close(h0);
599 zx_handle_t h0, h1;
600 status = zx_socket_create(0, &h0, &h1);
603 signals0 = get_satisfied_signals(h0);
613 status = zx_socket_write(h0, ZX_SOCKET_SHUTDOWN_READ, NULL, 0u, NULL);
616 signals0 = get_satisfied_signals(h0);
622 status = zx_socket_write(h0, 0u, "abcde", 5u, &count);
634 status = zx_socket_read(h0, 0u, NULL, 0, &count);
639 status = zx_socket_read(h0, 0u, rbuf, sizeof(rbuf), &count);
644 status = zx_socket_read(h0, 0u, rbuf, 1u, &count);
647 signals0 = get_satisfied_signals(h0);
655 zx_handle_close(h0);
666 zx_handle_t h0, h1;
667 status = zx_socket_create(0, &h0, &h1);
674 status = zx_socket_write(h0, 0u, buffer, buffer_size, &written);
679 zx_handle_close(h0);
690 zx_handle_t h0, h1;
693 status = zx_socket_create(ZX_SOCKET_DATAGRAM, &h0, &h1);
696 status = zx_socket_write(h0, 0u, "packet1", 8u, &count);
700 status = zx_socket_write(h0, 0u, "pkt2", 5u, &count);
710 status = zx_socket_write(h0, 0u, rbuf, sizeof(rbuf), &count);
758 zx_handle_t h0, h1;
759 status = zx_socket_create(ZX_SOCKET_DATAGRAM, &h0, &h1);
763 status = zx_object_get_property(h0, ZX_PROP_SOCKET_TX_BUF_MAX, &tx_buf_size,
776 status = zx_socket_write(h0, 0u, buffer, buffer_size, &written);
783 zx_handle_close(h0);
794 zx_handle_t h0, h1;
795 status = zx_socket_create(0, &h0, &h1);
798 status = zx_socket_write(h0, ZX_SOCKET_CONTROL, "hi", 2u, NULL);
807 status = zx_socket_read(h0, ZX_SOCKET_CONTROL, rbuf, sizeof(rbuf), &count);
821 zx_handle_t h0, h1;
822 status = zx_socket_create(ZX_SOCKET_HAS_CONTROL, &h0, &h1);
825 zx_signals_t signals0 = get_satisfied_signals(h0);
832 status = zx_socket_write(h0, ZX_SOCKET_CONTROL, "hello1", 6u, &count);
836 signals0 = get_satisfied_signals(h0);
841 status = zx_socket_write(h0, ZX_SOCKET_CONTROL, "hi", 2u, NULL);
848 signals0 = get_satisfied_signals(h0);
859 status = zx_socket_read(h0, 0, rbuf, sizeof(rbuf), &count);
863 status = zx_socket_write(h0, 0, "normal", 7u, &count);
872 status = zx_socket_read(h0, ZX_SOCKET_CONTROL, rbuf, sizeof(rbuf), &count);
877 status = zx_socket_read(h0, ZX_SOCKET_CONTROL, rbuf, sizeof(rbuf), &count);
888 signals0 = get_satisfied_signals(h0);
902 zx_handle_t h0, h1;
903 status = zx_socket_create(ZX_SOCKET_HAS_CONTROL, &h0, &h1);
906 zx_signals_t signals0 = get_satisfied_signals(h0);
918 signals0 = get_satisfied_signals(h0);
923 status = zx_socket_write(h0, ZX_SOCKET_CONTROL, "hello1", 6u, &count);
931 signals0 = get_satisfied_signals(h0);