Change #208451
Category | libpcap |
Changed by | Guy Harris <gharris | @sonic.net>
Changed at | Mon 23 Sep 2024 01:11:58 |
Repository | https://git.tcpdump.org/libpcap |
Project | libpcap |
Branch | master |
Revision | 58a47e52301671a095cea48de629179f46c31ad4 |
Comments
sockutils: don't keep our own socket count. WSAStartup() and WSACleanup() maintain their count of the number of times WSAStartup() has been called minus the number of times WSACleanup() has been called. If WSAStartup() is called when that count is zero, it initializes Winsock and, whether the count is zero or not, it increments the count. If WSACleanup() is called when that count is 1, it shuts down Winsock and whether the count is 1 or not, it decrements the count.
Changed files
- sockutils.c