Next: Communications Definitions, Up: The Communications Library [Index]
void accept(file i, file o, file x, integer f);
sets up i and o for communicating with the party that issued the first connection request in the pending connections queue of the x TCP IP server, according to the f flags. If the queue is empty, a connection requested is waited.
i is opened for reading, o for writing. f is a bitwise OR of zero or more of ‘NONBLOCKING_INPUT’, ‘NONBLOCKING_OUTPUT’ and ‘TCP_NODELAY’ bits.
void pipe(file i, file o, integer f);
sets up i and o as the ends of an unidirectional pipe
i is opened for reading, o for writing. f is a bitwise OR of zero or more of ‘NONBLOCKING_INPUT’ and ‘NONBLOCKING_OUTPUT’ bits.
void tcpip_connect(file i, file o, text n, integer p, integer f);
sets up i and o for TCP communication with the IP party on node n and port p, according to the f flags.
i is opened for reading, o for writing. f is a bitwise OR of zero or more of ‘NONBLOCKING_INPUT’, ‘NONBLOCKING_OUTPUT’ and ‘TCP_NODELAY’ bits.
file tcpip_listen(file x, integer p, integer f);
is x, establishes x as a TCP IP server on port p, according to the f flags.
f may be 0 or may be ‘REUSE_ADDRESS’.
void tcpunix_connect(file i, file o, text p, integer f);
sets up i and o for TCP communication with the UNIX party on socket p, according to the f flags.
i is opened for reading, o for writing. f is a bitwise OR of zero or more of ‘NONBLOCKING_INPUT’, ‘NONBLOCKING_OUTPUT’ and ‘TCP_NODELAY’ bits.
file tcpunix_listen(file x, text p, integer f);
is x, establishes x as a TCP UNIX server on socket p, according to the f flags. p must not exist. p is not removed when x is closed (or at any other time).
f is 0.
Next: Communications Definitions, Up: The Communications Library [Index]