Dart Ftp Control
Abort Method
Description
Abort any blocking method and release all system resources.
Syntax
Visual Basic
Public Sub Abort() 
Remarks

Use this method at any time to abruptly release all resources. The State property is tcpClosed when this method returns.

Destruction of the control automatically uses this method to release all resources.

When a blocking call is in progress (like Get), and Abort is called with an immediate call to a second Get (or other method), the first Get method does not return until the subsequent Get method(s) complete. It will return a ptAbort error.

Calling Abort will raise a ptAbort Error event.

Note: For TCP-based controls, the Abort method performs a "hard close", with a socket LINGER option time of 0. To prevent the socket from entering a WAIT_STATE, and to immediately release it for reuse, use Abort instead of Close.

Note: When using the Http control, the State property goes to httpCompleted when Abort is called.

CAUTION: Use the Close/Logout method in most cases, as buffers are cleared and communications terminate gracefully. Use the Abort method only when the application is abruptly terminated while a blocking method is executing or under any other unusual circumstances.

See Also

Ftp Object  | Ftp Members


PowerTCP SSL for ActiveX Documentation Version 2.2.1
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic