コード例 #1
0
ファイル: TransferSocket.cpp プロジェクト: sd-eblana/bawx
CTransferSocket::~CTransferSocket()
{
    if (m_pBuffer)
#if defined(_XBOX)
        free(m_pBuffer);
#else
        delete [] m_pBuffer;
#endif
    if (m_hFile != INVALID_HANDLE_VALUE)
    {
        CloseHandle(m_hFile);
        m_hFile = INVALID_HANDLE_VALUE;
    }
#ifndef NOLAYERS
    RemoveAllLayers();
    if (m_pGssLayer)
        delete m_pGssLayer;
#endif
    while (m_pDirListing)
    {
        t_dirlisting *pPrev = m_pDirListing;
        m_pDirListing = m_pDirListing->pNext;
        delete pPrev;
    }
}
コード例 #2
0
ファイル: TransferSocket.cpp プロジェクト: gumb0/Far-NetBox
CTransferSocket::~CTransferSocket()
{
	LogMessage(__FILE__, __LINE__, this,FZ_LOG_DEBUG, _T("~CTransferSocket()"));
	nb_free(m_pBuffer);
#ifndef MPEXT_NO_ZLIB
	nb_free(m_pBuffer2);
#endif
	PostMessage(m_pOwner->m_pOwner->m_hOwnerWnd, m_pOwner->m_pOwner->m_nReplyMessageID, FZ_MSG_MAKEMSG(FZ_MSG_TRANSFERSTATUS, 0), 0);
	Close();
	RemoveAllLayers();
	delete m_pProxyLayer;
#ifndef MPEXT_NO_SSL
	delete m_pSslLayer;
#endif
#ifndef MPEXT_NO_GSS
	delete m_pGssLayer;
#endif
	m_pOwner->RemoveActiveTransfer();

	delete m_pListResult;

#ifndef MPEXT_NO_ZLIB
	if (m_useZlib)
	{
		if (m_nMode & CSMODE_UPLOAD)
			deflateEnd(&m_zlibStream);
		else
			inflateEnd(&m_zlibStream);
	}
#endif
}
コード例 #3
0
CTransferSocket::~CTransferSocket()
{
  nb_free(m_pBuffer);
#ifndef MPEXT_NO_ZLIB
  nb_free(m_pBuffer2);
#endif
  GetIntern()->FZPostMessage(FZ_MSG_MAKEMSG(FZ_MSG_TRANSFERSTATUS, 0), 0);
  Close();
  RemoveAllLayers();
  delete m_pProxyLayer;
  delete m_pSslLayer;
#ifndef MPEXT_NO_GSS
  delete m_pGssLayer;
#endif
  m_pOwner->RemoveActiveTransfer();

  delete m_pListResult;

#ifndef MPEXT_NO_ZLIB
  if (m_useZlib)
  {
    if (m_nMode & CSMODE_UPLOAD)
      deflateEnd(&m_zlibStream);
    else
      inflateEnd(&m_zlibStream);
  }
#endif
}
コード例 #4
0
ファイル: EMSocket.cpp プロジェクト: rusingineer/EmulePlus
void CEMSocket::OnClose(int nErrorCode)
{
	m_eConnectionState = ES_DISCONNECTED;
	CEncryptedStreamSocket::OnClose(nErrorCode);
	RemoveAllLayers();
	ClearQueues();
}
コード例 #5
0
ファイル: EMSocket.cpp プロジェクト: rusingineer/EmulePlus
CEMSocket::~CEMSocket()
{
	EMTrace("CEMSocket::~CEMSocket() on %d",(SOCKET)this);
	ClearQueues();
	RemoveAllLayers();
	AsyncSelect(0);
}
コード例 #6
0
ファイル: EMSocket.cpp プロジェクト: HackLinux/eMule-Mirror
void CEMSocket::OnClose(int nErrorCode){
    // need to be locked here to know that the other methods
    // won't be in the middle of things
    sendLocker.Lock();
	byConnected = ES_DISCONNECTED;
    sendLocker.Unlock();

    // now that we know no other method will keep adding to the queue
    // we can remove ourself from the queue
    theApp.uploadBandwidthThrottler->RemoveFromAllQueues(this);

	CEncryptedStreamSocket::OnClose(nErrorCode); // deadlake changed socket to PROXYSUPPORT ( AsyncSocketEx )
	RemoveAllLayers(); // deadlake PROXYSUPPORT
	ClearQueues();
}
コード例 #7
0
ファイル: EMSocket.cpp プロジェクト: HackLinux/eMule-Mirror
CEMSocket::~CEMSocket(){
	EMTrace("CEMSocket::~CEMSocket() on %d",(SOCKET)this);

    // need to be locked here to know that the other methods
    // won't be in the middle of things
    sendLocker.Lock();
	byConnected = ES_DISCONNECTED;
    sendLocker.Unlock();

    // now that we know no other method will keep adding to the queue
    // we can remove ourself from the queue
    theApp.uploadBandwidthThrottler->RemoveFromAllQueues(this);

    ClearQueues();
	RemoveAllLayers(); // deadlake PROXYSUPPORT
	AsyncSelect(0);
}
コード例 #8
0
ファイル: IrcSocket.cpp プロジェクト: machado2/emule
CIrcSocket::~CIrcSocket()
{
	RemoveAllLayers();
}