prolog::socket_bind/2¶
socket_bind(+ SOCKET, ? PORT)*
Interface to system call bind
, as used for servers: bind socket to a port. Port information depends on the domain:
-
'AF_UNIX'(+ FILENAME) (unsupported)
-
'AF_FILE'(+ FILENAME) use file name FILENAME for UNIX or local sockets.
-
'AF_INET'(? HOST,?PORT) If HOST is bound to an atom, bind to host HOST, otherwise if unbound bind to local host ( HOST remains unbound). If port PORT is bound to an integer, try to bind to the corresponding port. If variable PORT is unbound allow operating systems to choose a port number, which is unified with PORT.
Private-func:¶
1. prolog::socket_bind_2::socket_bind/2(int ARG1, int ARG2)():