Dart SecureTcp, SecureServer Controls
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 Receive), and Abort is called with an immediate call to a second Receive (or other method), the first Receive method does not return until the subsequent Receive method(s) complete. It will return a ptAbort error.

Calling Abort will raise a ptAbort Error event.

Note 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.

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

See Also

SecureTcp Object  | SecureTcp Members


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