NetworkComms GetExistingConnection Method (ConnectionType, ApplicationLayerProtocolStatus)NetworkComms.Net Help
Returns a list of all connections matching the provided parameters.

Namespace: NetworkCommsDotNet
Assembly: NetworkCommsDotNet (in NetworkCommsDotNet.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax

public static List<Connection> GetExistingConnection(
	ConnectionType connectionType,
	ApplicationLayerProtocolStatus applicationLayerProtocol = ApplicationLayerProtocolStatus.Undefined
)

Parameters

connectionType
Type: NetworkCommsDotNet.Connections ConnectionType
The type of connections to return. ConnectionType.Undefined matches all types.
applicationLayerProtocol (Optional)
Type: NetworkCommsDotNet.Connections ApplicationLayerProtocolStatus
Connections with matching ApplicationLayerProtocolStatus. Use ApplicationLayerProtocolStatus.Undefined to match all status types.

Return Value

Type: OnlineList Connection 
A list of requested connections. If no matching connections exist returns empty list.
See Also