Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
This method provides developers with a chance to perform custom connection-termination tasks. IConnectionManager::ConnectionCompletecalls this method when it starts termination of the connection.
Syntax
virtual DWORD EndConnection( long ConnectionID ) = 0; |
Parameters
- EndConnection
-
[in] ID of the connection being terminated.
Return Value
The return value of this method is ignored by ConnectionComplete.
Remarks
The AVTransport service's PrepareForConnection action is defined as optional in the UPnP AV DCP. The AV renderer sample implements PrepareForConnection, or does not, depending on the value of the CM_NO_PREPARE_FOR_CONNECTION preprocessor definition. If this constant is defined, the sample does not support PrepareForConnection; otherwise, the sample provides support for multiple connections. To see how this definition is used, examine ConnectionManager.cpp in the AV renderer sample's source directory.
For more information about the ContentDirectory service, see the documentation for the ContentDirectory DCP in UPnP AV DCP Documentation.
Requirements
Header | av_upnp.h |
Library | Av_upnp.lib |
Windows Embedded CE | Windows CE 5.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |