Share via


IConnectionManagerImpl::EndConnection (Compact 7)

3/12/2014

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 Forum AV Web site.

Requirements

Header

av_upnp.h

Library

Av_upnp.lib

See Also

Reference

IConnectionManagerImpl
IConnectionManager::ConnectionComplete