Returns information about the status of a connection as well as the statistics about this connection.
CurrentConnection is boolean
ConnectionDuration is Duration
CurrentConnection = NetInfoRemoteAccess("MyAccesss", niConnected)
IF CurrentConnection = True THEN
ConnectionDuration = NetInfoRemoteAccess("MyAccess", niConnectionDuration)
Info("The MyAccess connection is opened since " + ConnectionDuration)
<Result> = NetInfoRemoteAccess(<Access name> , <Type of information>)
<Result>: Integer or boolean
<Access name>: Character string
Name of "Remote network access" connection defined in Windows.
<Type of information>: Integer constant
Type of information about the connection:
|niConnected||<Result> is a boolean. |
Used to find out whether the connection is enabled.
<Result> is set to True if the connection is active.
|niConnectionDuration||<Result> is a duration. |
Duration since the connection was established.
|niNbByteReceived||<Result> is an integer. |
Number of bytes received since the connection was established.
|niNbByteTransmitted||<Result> is an integer. |
Number of bytes transmitted since the connection was established.