Go to the first, previous, next, last section, table of contents.


The socket interface

Author(s): Manuel Carro, Daniel Cabeza.

Version: 1.5#128 (2000/5/2, 18:4:14 CEST)

Version of last change: 1.5#127 (2000/5/2, 16:50:36 CEST)

This module defines primitives to open sockets, send, and receive data from them. This allows communicating with other processes, on the same machine or across the Internet. The reader should also consult standard bibliography on the topic for a proper use of these primitives.

Usage and interface (sockets)

Documentation on exports (sockets)

PREDICATE: connect_to_socket/3:

Usage: connect_to_socket(+Host,+Port,-(Stream))

PREDICATE: socket_recv/2:

Usage: socket_recv(+Stream,?(String))

REGTYPE: socket_type/1:

Defines the atoms which can be used to specify the socket type recognized by connect_to_socket_type/4. Defined as follows:

socket_type(stream).
socket_type(dgram).
socket_type(raw).
socket_type(seqpacket).
socket_type(rdm).

Usage: socket_type(T)

PREDICATE: socket_recv_code/3:

Usage: socket_recv_code(+Stream,?(String),?(Length))

PREDICATE: socket_send/2:

Usage: socket_send(+Stream,+String)

PREDICATE: select_socket/5:

Usage: select_socket(+Socket,-(NewStream),+TO_ms,+Streams,-(ReadStreams))

PREDICATE: socket_accept/2:

Usage: socket_accept(+Sock,-(Stream))

PREDICATE: bind_socket/3:

Usage: bind_socket(?(Port),+Length,-(Socket))

PREDICATE: connect_to_socket_type/4:

Usage: connect_to_socket_type(+Host,+Port,+Type,-(Stream))


Go to the first, previous, next, last section, table of contents.