Include
#include "ILMNetSnk2.h"
Syntax
Language | Syntax |
---|---|
C Syntax | HRESULT ILMNetSnk_get_LastConnectionID(pNetSnk, pID) |
C++ Syntax | HRESULT get_LastConnectionID(pID) |
Data Type | Description |
---|---|
ILMNetSnk * pNetSnk; | /* pointer to an interface */ |
long *pID; | /* pointer to a variable */ |
Summary
Gets the last connection ID for the most recent client connection.
Parameters
Parameter | Description |
---|---|
pNetSnk | Pointer to an ILMNetSnk interface. |
pID | Pointer to a variable to be updated with the ID of the last client connection. |
Returns
Value | Meaning |
---|---|
S_OK | The function was successful. |
<> S_OK | An error occurred. Refer to the Error Codes or the HRESULT error codes in the DirectShow documentation. |
Remarks
The value of pID is constantly incremented each time a new connection is made. So, if the value changes, this means a new client has connected.
If the connection list changes, the Network Mutiplexer filter sends a new sync point.
Required DLLs and Libraries
For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.
Win32, x64
ILMNetSnk::get_FirstConnection
ILMNetSnk::FindConnection
ILMNetSnk::get_LastConnection
Streaming Function Groups
Multimedia Function Groups
DVD Function Groups
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document