Author(s): Francisco Bueno.
Version: 1.10#6 (2004/8/7, 21:46:39 CEST)
Version of last change: 1.9#241 (2003/12/22, 18:56:7 CET)
This module provides two useful predicates for programming with sockets.
Meta-predicate with arguments:
serve_socket(Socket, Server, Handler)
Serveron one request of each stream (as
Handler(Stream)if the stream is empty (connection closed).
Socketis a socket id. (
Serveris a term which represents a goal, i.e., an atom or a structure. (
Handleris a term which represents a goal, i.e., an atom or a structure. (
Streamin a way that it is safe for a socket connection on
Streamis an open stream. (
Termis any term. (
Go to the first, previous, next, last section, table of contents.