Lines Matching defs:socket
370 __builtin_offsetof(fuchsia_io_NodeInfo, pipe.socket), "Unaligned Pipe");
455 zx_status_t fdio_acquire_socket(zx_handle_t socket, fdio_t** out_io) {
458 zx_status_t status = zx_object_get_info(socket, ZX_INFO_SOCKET, &info, sizeof(info), NULL, NULL);
460 zx_handle_close(socket);
465 // If the socket has a control plane, then the socket is either
466 // a stream or a datagram socket.
468 io = fdio_socket_create_datagram(socket, IOFLAG_SOCKET_CONNECTED);
470 io = fdio_socket_create_stream(socket, IOFLAG_SOCKET_CONNECTED);
473 // Without a control plane, the socket is a pipe.
474 io = fdio_pipe_create(socket);
595 // Expected: Single socket handle