Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 752 Bytes

socket.md

File metadata and controls

26 lines (17 loc) · 752 Bytes

Socket

NAME

Socket - Bidirectional streaming IPC transport

SYNOPSIS

Sockets are a bidirectional stream transport. Unlike channels, sockets only move data (not handles).

DESCRIPTION

Data is written into one end of a socket via mx_socket_write and read from the opposing end via mx_socket_read.

Upon creation, both ends of the socket are writable and readable. Via the MX_SOCKET_HALF_CLOSE option to mx_socket_write, one end of the socket can be closed for reading (and the opposing end for writing).

SYSCALLS