Connect

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

  1. To start an Unix connection you will only pass the first argument:

  1. To start a TCP connection you have to pass two arguments: