Is it necessary to call WSACleanup before program exit

1.1k views Asked by At

I have a Windows socket program (XP and above) that calls WSAStartup. Is it necessary to call WSACleanup before the program exits? If I don't, will there be any negative consequences? In particular is:

WSACleanup();
exit(0);

different from merely exit(0). I realise that on Win16 omitting the WSACleanup would leak system resources, is that still the case.

0

There are 0 answers