Connect

Description

Establishes a connection with the host.

Syntax

ret = Connect (timeout)

Parameters

ret

Integer, output

 

0 = OK

 

Non zero = timed out/error

 

 

timeout

Integer, input

 

The number of seconds to wait before indicating a time out condition.

Remarks

This is a PASSPORT function.

Example

Sub ZMain()
Disconnect
msgbox ("The session is now disconnected!")   
Connect 10
msgbox ("The session is now connected!")
End Sub