Places
Home
Graphs
Prefixes
Admin
Users
Settings
Plugins
Statistics
Repository
Load local file
Load from HTTP
Load from library
Remove triples
Clear repository
Query
YASGUI SPARQL Editor
Simple Form
SWISH Prolog shell
Help
Documentation
Tutorial
Roadmap
HTTP Services
Login
6.3 TCP socket predicates
All
Application
Manual
Name
Summary
Help
Documentation
Reference manual
Packages
SWI-Prolog C-library
library(socket): Network socket (TCP and UDP) library
TCP socket predicates
tcp_socket/1
tcp_close_socket/1
tcp_open_socket/2
tcp_open_socket/3
tcp_bind/2
tcp_listen/2
tcp_accept/3
tcp_connect/2
tcp_connect/4
tcp_connect/3
tcp_select/3
tcp_setopt/2
tcp_fcntl/3
tcp_host_to_address/2
gethostname/1
negotiate_socks_connection/2
Availability:
:- use_module(
library(socket)
).
(can be autoloaded)
[det]
tcp_accept
(
+Socket, -Slave, -Peer
)
This predicate waits on a server socket for a connection request by a client. On success, it creates a new socket for the client and binds the identifier to
Slave
.
Peer
is bound to the IP-address of the client.
ClioPatria
(version
V3.1.1-21-gb8003bb
)