Home / comp / gb.net / socket / connect 
Socket.Connect (gb.net)
Syntax
SUB Connect ( [ HostOrPath AS String, Port AS Integer ] )
Use this method to establish 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.

Local connection

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

Network connection

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