Hi,
I have an application where I want to break
out an event, and exit the thread. I have the following:
unsigned CTelServerDlg::WaitForConnection(LPVOID
thisContext)
{ CTelServerDlg* pThis = reinterpret_cast<CTelServerDlg*>(thisContext); WSAEVENT hEvent =
WSA_INVALID_EVENT;
hEvent = WSACreateEvent(); ::WSAEventSelect(CSock.m_Connection, hEvent, FD_ACCEPT); SOCKET Accept; PER_HANDLE_DATA *TmpHandleData; DWORD Bytes = 0; DWORD Flags = 0; SOCKADDR_IN saRemote; int RemoteLen=sizeof(saRemote); .... ...
}
but at any point within the application I want to break the thread, and
stop any other connections, then restart the thread again at any
time.
Regards
Neil
|
_______________________________________________ msvc mailing list msvc@beginthread.com See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription changes, and list archive.