socket_connect/3¶
socket_connect(+ SOCKET, + PORT, - STREAM)*
Interface to system call connect
, used for web clients: connect socket SOCKET to PORT. The connection results in the read/write stream STREAM.
Port information depends on the domain:
-
'AF_UNIX'(+ FILENAME) connect to socket at file FILENAME.
-
'AF_INET'(+ HOST,+ PORT) Connect to socket at host HOST and port PORT.