Did you know ...
Search Documentation:
Predicate negotiate_socks_connection/2
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
Documentation
Reference manual
Packages
SWI-Prolog C-library
library(socket): Network socket (TCP and UDP) library
Socket predicate reference
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
Availability:
:- use_module(
library(socket)
).
(can be autoloaded)
[det]
negotiate_socks_connection
(
+DesiredEndpoint, +StreamPair
)
Negotiate a connection to
DesiredEndpoint
over
StreamPair
.
DesiredEndpoint
should be in the form of either:
hostname : port
ip(A,B,C,D)
: port
Errors
socks_error(Details)
if the SOCKS negotiation failed.