![]() |
DecreaseSocketCount() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Public Function |
Declared in: SocketThreadManager.h |
void DecreaseSocketCount( HWND hWindowHandle);
Less socket in the system
try { //First find the window handle int iIndex; iIndex=GetIndexByHWND(hWindowHandle); //Check it's valid if (!iIndex) return; //Enter the critical section EnterCriticalSection(&m_pCSection); //Decrement the socket count if (m_pThreadData[iIndex-1].iSocketCount>0) --m_pThreadData[iIndex-1].iSocketCount; //Leave the critical section LeaveCriticalSection(&m_pCSection); return; } ERROR_HANDLER("DecreaseSocketCount") //Error, release the critical section LeaveCriticalSection(&m_pCSection);
![]() |
Site content copyright © 2001 Barak Weichselbaum. See the About page for additional notices. This page last updated: 24 Apr 2001. |