Did you know ...
Search Documentation:
Predicate tcp_open_socket/3
HOME
DOWNLOAD
SWI-Prolog
Sources/building
Docker images
Add-ons
Browse GIT
DOCUMENTATION
Manual
Packages
FAQ
Command line
PlDoc
Bluffers
▶
Prolog syntax
PceEmacs
HTML generation
License
Publications
Rev 7 Extensions
TUTORIALS
Beginner
▶
Getting started
Learn Prolog Now!
Simply Logical
Debugger
Development tools
Advanced
▶
Modules
Grammars (DCGs)
clp(fd)
Printing messages
PlDoc
Web applications
▶
Web applications
Let's Encrypt!
Pengines
Semantic web
▶
ClioPatria
RDF namespaces
Graphics
▶
XPCE
GUI options
Machine learning
▶
Probabilistic Logic Programming
External collections
▶
Meta level tutorials
For packagers
▶
Linux packages
COMMUNITY
IRC
Forum & mailing list
Blog
News
Report a bug
Submit a patch
Submit an add-on
Roadmap (on GitHub)
External links
Contributing
Code of Conduct
Contributors
SWI-Prolog items
COMMERCIAL
WIKI
Login
View changes
Sandbox
Wiki help
All tags
ext
clib
socket.pl -- Network socket (TCP and UDP) library
socket_create/2
tcp_socket/1
unix_domain_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
rewrite_host/3
tcp_connect/4
tcp_connect/3
tcp_select/3
try_proxy/4
proxy_for_url/3
udp_socket/1
udp_receive/4
udp_send/4
tcp_setopt/2
tcp_fcntl/3
tcp_getopt/2
host_address/3
tcp_host_to_address/2
gethostname/1
ip_name/2
negotiate_socks_connection/2
time.pl -- Time and alarm library
uid.pl -- User and group management on Unix systems
unix.pl -- Unix specific operations
syslog.pl -- Unix syslog interface
uri.pl -- Process URIs
filesex.pl -- Extended operations on files
memfile.pl
sha.pl -- SHA secure hashes
crypt.pl
uuid.pl -- Universally Unique Identifier (UUID) Library
process.pl -- Create processes and redirect I/O
md5.pl -- MD5 hashes
cgi.pl -- Read CGI parameters
hash_stream.pl -- Maintain a hash on a stream
mallocinfo.pl -- Memory allocation details
prolog_server.pl
prolog_stream.pl -- A stream with Prolog callbacks
rlimit.pl
sched.pl -- Access process scheduling
streaminfo.pl
streampool.pl -- Input multiplexing
udp_broadcast.pl -- A UDP broadcast proxy
tcp_open_socket
(+SocketId, -InStream, -OutStream)
is
det
Similar to
tcp_open_socket/2
, but creates two separate sockets where
tcp_open_socket/2
would have created a stream pair.
deprecated
- New code should use
tcp_open_socket/2
because closing a stream pair is much easier to perform safely.