|Did you know ...||Search Documentation:|
:- use_module(library(socket)).(can be autoloaded)
If Port is unbound, the system picks an arbitrary free port and unifies Port with the selected port number. Port is either an integer or the name of a registered service. See also tcp_connect/4.