13 Sep
2009
13 Sep
'09
9:46 p.m.
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.