FTP Function Reference

sFTPReconnect

FTP Function Reference

This function reestablishes a connection to the remote server to ensure that the correct information is retrieved from the remote server.

<DllImport("SapphireFTP.dll")> _
Public Function sFTPReconnect(ByVal lPassive As Integer, ByVal lLicence As Integer) As Integer
End Function

Parameters

  lPassive
    An integer flag specifying whether to use passive mode or not. Setting this parameter to 1 will use passive mode and setting to 0 will use active mode.
  lLicence
    An integer specifying the licence number of the registered utility. If using in demo mode, enter 1234567890.

Return Values

  Returns a number indicating whether the reconnect procedure was successful or not. 1 = Successful, 0 = Failed.