Partager via


IConnectionManagerImpl::EndConnection (Windows Embedded CE 6.0)

1/6/2010

This method provides developers with a chance to perform custom connection-termination tasks. IConnectionManager::ConnectionComplete calls 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

See Also

Reference

IConnectionManagerImpl
IConnectionManager::ConnectionComplete