ICI Modules: net: connect


Modules by name : by type

Synopsis

socket = net.connect(socket, string | int)

Description

Connect the given socket to the given address specified either as a string as defined in this page or if the address is specified as an integer it is assumed to be a port number on the local host for a service that is accepting connections.

The function returns the socket object passed as argument to allow chaining of socket related function calls.