7c642bcc6a
Change-Id: I95b6a42330f8b9d3711c5c894aeaf88a9256f2de
752 B
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
- socket_create - create a new socket
- socket_read - read data from a socket
- socket_write - write data to a socket