Forgot this part:
Ismael Barros wrote: +static DWORD WINAPI tcp_listener_thread( LPVOID lpParameter ) +{
- for ( ;; )
- {
if ( clientSock == INVALID_SOCKET )
{
goto end;
}
- }
+end: +}
It's more cleaner to use "break;" instead of goto to exit the loop.
Vitaliy.