SUB Connect ( [ HostOrPath AS String, Port AS Integer ] )
Use this method to stablish a TCP or Local (Unix) connection with a remote TCP or Local server. You can use this method only when Status value is zero or lesser than zero (previous error), otherwise an error will raise
To start an Unix connection you will only pass the first argument:
HostOrPath : UNIX socket Path to connect to. (Relative paths are allowed here)
To start a TCP connection you have to pass two arguments:
HostOrPath : Host name, or Host IP to connect to
Port : the number of the TCP port to connect to (1 - 65535)