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


The socket interface

Author(s): Manuel Carro, Daniel Cabeza.

Version: 1.11#222 (2004/5/24, 13:8:7 CEST)

Version of last change: 1.7#58 (2001/2/8, 11:46:41 CET)

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)

REGTYPE: shutdown_type/1:

Usage: shutdown_type(T)

PREDICATE: hostname_address/2:

Usage: hostname_address(Hostname, Address)

PREDICATE: socket_shutdown/2:

Usage: socket_shutdown(Stream, How)

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.