Click or drag to resize
ITcpConnectionStateService Interface
A service that can retrieve the state of TCP connections.

Namespace: VirtualRadar.Interface.Network
Assembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public interface ITcpConnectionStateService

The ITcpConnectionStateService type exposes the following members.

Properties
  NameDescription
Public propertyCountConnections
Gets the count of connections that the service knows about.
Top
Methods
  NameDescription
Public methodDescribeRemoteConnectionState
Returns a description of the state of a remote end-point.
Public methodIsRemoteConnectionEstablished
Returns true if the connection to the remote end-point was in the ESTABLISHED state when the object was constructed.
Public methodRefreshTcpConnectionStates
Reloads the cache of connection states that was established when the object was created. All other methods work off this cache, they do not perform live lookups.
Top
Remarks
Getting the TCP connection state is fairly straight-forward - however under Mono the IPGlobalProperties.GetIPGlobalProperties().GetActiveTcpConnections() call is currently bugged, we need to handle it differently when running under Mono. This interface wraps the call and copes with the bugged call.
See Also