Arquivos
magenta/docs/objects/socket.md
T
George Kulakowski 7c642bcc6a [docs] Add objects.md and objects/foo.md pages
Change-Id: I95b6a42330f8b9d3711c5c894aeaf88a9256f2de
2017-04-12 19:01:31 +00:00

752 B

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