System Interface Guide

Stream Data Transfer and Closing

There are several functions to send and receive data from a SOCK_STREAM socket. These are write(2), read(2), send(3N), and recv(3N). send(3N) and recv(3N) are very similar to read(2) and write(2), but have some additional operational flags.

A SOCK_STREAM socket is discarded by calling close(2).