OP Remote Connection Status

4D - Documentation   Français   English   German   4D Open for 4D, Command Theme List   4D Open for 4D, Command Alphabetical List   Back   Previous   Next

version 1.5


OP Remote Connection Status (phase; error; connectedTo; lastMessage) Longint

ParameterTypeDescription
phaseLongintStatus of remote connection
errorLongintError
connectedToStringConnected to
lastMessageStringLast message
Function resultLongintError code result for the function

Description

OP Remote Connection Status provides a means to check the status of a connection attempt that was initiated using OP Start Remote Connection. After a connection has been succesfully initiated, the phase parameter returns a value of one (1).

The possible values for the phase parameter are:

0: Connected

1: Connection in progress

2: Disconnected

Example

   C_LONGINT(status1;$ErrCode;error)
   C_STRING(100;devType;devName)
   C_TEXT($errorText)

   $ErrCode:=OP Start Remote Connection("Home";"MyName";"MyPassword";True)

   Repeat
      $ErrCode:=OP Remote Connection Status(status1;error;devType;devName)
   Until(status#1) 

   $errorText:=OP Get Error Text($ErrCode)
   .
   .
   .
   $errorText:=OP End Remote Connection()

See Also

OP End Remote Connection, OP Start Remote Connection.


4D - Documentation   Français   English   German   4D Open for 4D, Command Theme List   4D Open for 4D, Command Alphabetical List   Back   Previous   Next