mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
793 B
41 lines
793 B
//
|
|
// PersistentDataChannel.cpp : Implementation of CPersistentDataChannel
|
|
//
|
|
#include "PreComp.h"
|
|
#include "PersistentDataChannel.h"
|
|
#include "AlgController.h"
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// CPersistentDataChannel
|
|
//
|
|
|
|
|
|
|
|
//
|
|
// Cancel the associated DynamicRedirect of the PersistenDataChannel
|
|
//
|
|
STDMETHODIMP CPersistentDataChannel::Cancel()
|
|
{
|
|
HRESULT hr = S_OK;
|
|
|
|
if ( m_HandleDynamicRedirect )
|
|
{
|
|
hr = g_pAlgController->GetNat()->CancelDynamicRedirect(m_HandleDynamicRedirect);
|
|
}
|
|
|
|
return hr;
|
|
}
|
|
|
|
|
|
|
|
//
|
|
// Return the propreties to an ALG Modules
|
|
//
|
|
STDMETHODIMP CPersistentDataChannel::GetChannelProperties(ALG_PERSISTENT_DATA_CHANNEL_PROPERTIES **ppProperties)
|
|
{
|
|
*ppProperties = &m_Properties;
|
|
|
|
return S_OK;
|
|
}
|