SICStus compatible socket library¶
YAP includes a SICStus Prolog compatible socket interface.
In YAP-6.3 this uses the clib
package to emulate the old low level interface that provides direct access to the major socket system calls. These calls can be used both to open a new connection in the network or connect to a networked server. Socket connections are described as read/write streams, and standard Input/Output built-ins can be used to write on or read from sockets. The following calls are available:
see:
http://www.sics.se/sicstus/docs/3.7.1/html/sicstus_28.html
- socket_select/6
- socket_buffering/4
- tcp_socket_connect/4
- socket_listen/3
- socket_accept/4
- hostname_address/3
- prolog::hostname_address/2
- prolog::current_host/1
- prolog::socket_accept/3
- prolog::socket_listen/2
- prolog::tcp_socket_connect/3
- prolog::socket_bind/2
- prolog::socket_close/1
- prolog::ip_socket/2
- prolog::ip_socket/4