Closes all streams currently connected or listening.

Namespace:  Quanser.Communications
Assembly:  Quanser.Communications (in Quanser.Communications.dll)

Syntax

Visual Basic (Declaration)
Public Shared Sub CloseAll
C#
public static void CloseAll()
Visual C++
public:
static void CloseAll()
JavaScript
Quanser.Communications.Stream.closeAll = function();

Remarks

This method closes all streams that are currently connected or listening. All resources associated with those streams are freed. This method is typically used in exceptional conditions in order to ensure that all streams are closed. Note that only those streams that are associated with the current process are closed.

Examples

This example closes all streams.
C# Copy Code
Stream.CloseAll();
Visual Basic Copy Code
Stream.CloseAll()
Visual C++ Copy Code
Stream::CloseAll();

See Also