Dart SecureTcp, SecureServer Controls
State Event
Object that is changing state.
Description
Fires when the State property changes.
Syntax
Visual Basic
Public Event State( _
   ByVal Child As SecureTcp _
)
Parameters
Child
Object that is changing state.
Remarks

WARNING Timeout must be 0 when calling methods from within an event. Failure to observe this rule may cause reentrancy problems and unpredictable results.

When the Socket property is set to manage a connection that was accepted by the SecureServer Control, the State property immediately transitions from tcpClosed to tcpConnected, at which time communications activity can start.

The Close method normally causes the State property to transition from tcpConnected to tcpClosing (while resources are being de-allocated) to tcpClosed.

When the remote host closes the connection, there may still be data available in the stream. In this case, the State property is tcpClosing until all the data is received and the socket returns a 0 value (using the Receive, Fill, or Search method), after which the State property changes to tcpClosed.

See Also

SecureServer Object  | SecureServer Members


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