Next: , Up: The Communications Library   [Index]


13.15.1 Communications Functions

accept

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.

pipe

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.

tcpip_connect

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.

tcpip_listen

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’.

tcpunix_connect

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.

tcpunix_listen

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.

See Communications Definitions.


Next: Communications Definitions, Up: The Communications Library   [Index]