Discuss this help topic in SecureBlackbox Forum

TElDNSClient.Active

TElDNSClient     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


Specifies if the client is active.

Declaration

[C#]
    bool Active;

[VB.NET]
    Property Active As Boolean

[Pascal]
    property Active : boolean;

[C++]
    bool get_Active();

[PHP]
    bool get_Active()

[Java]
    boolean getActive();

Description

    If this property value is True, the connection was established, and the client is activated and ready for operation.
    However, if the connection is lost on the socket level, there is no way to find out that the connection has been closed, and Active property can still be True. The only way to check the actual connection state is to send something and get an error if the connection has been closed. This is by design of TCP/IP.
    Your code should always be ready to handle unexpected disconnections and other network errors and reconnect if needed.

See also:     Activate    

Discuss this help topic in SecureBlackbox Forum