Home > comp > gb.net > socket > connect 
  [3.0]
 fr de es it nl pl pt pt_BR mk sq ca ar fa vi ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration  
Documentation
History
 
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: