swirl
Guide to OmniMark 7   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
      Other Library Functions  
function  

FTPConnectionClose

 
 

Library: Net, FTP support (OMFTP)
Include: omftp.xin

Declaration

  define external function FTPConnectionClose
             value FTPConnection this-FTPConnection


Purpose

This function closes the connection to the FTP server. If a source or an output object is active when this function is closed, the source/output function is closed as well. For the source, it does not mean that OmniMark will not match any more data, since it may already have some data buffered. It does mean that no more data will be read from the server. For the output object, the connection will be closed, but if it is attached to a stream, the stream will still be open. Sending data to an open stream with a closed output attachment will put the FTP connection in error.

To use this function, you must include the following line near the start of your program:


  include "omftp.xin"

Argument:

Example:

  ; close the FTP connection
  include "omftp.xin"

  process

     FTPConnectionClose MyCon

        Other Library Functions
   FTPConnection
   FTPConnectionChangeDir
   FTPConnectionClose
   FTPConnectionDelete
   FTPConnectionDeleteDir
   FTPConnectionGetStatusReport
   FTPConnectionGetWorkingDir
   FTPConnectionIsInError
   FTPConnectionIsOpen
   FTPConnectionListDir
   FTPConnectionMakeDir
   FTPConnectionOpen
   FTPConnectionRemoteInputFile
   FTPConnectionRemoteOutputFile
   FTPConnectionSetASCII
   FTPConnectionSetBinary
   FTPIsVersionCompatible
   FTPLibraryVersion
 
 

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ LEGACYLIBRARIES ] [ ERRORS ]

OmniMark 7.1.2 Documentation Generated: June 28, 2005 at 5:45:16 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © Stilo Corporation, 1988-2005.