| 7025 | namespace SocketHelpers |
| 7026 | { |
| 7027 | static void initSockets() |
| 7028 | { |
| 7029 | #if JUCE_WINDOWS |
| 7030 | static bool socketsStarted = false; |
| 7031 | |
| 7032 | if (! socketsStarted) |
| 7033 | { |
| 7034 | socketsStarted = true; |
| 7035 | |
| 7036 | WSADATA wsaData; |
| 7037 | const WORD wVersionRequested = MAKEWORD (1, 1); |
| 7038 | WSAStartup (wVersionRequested, &wsaData); |
| 7039 | } |
| 7040 | #endif |
| 7041 | } |
| 7042 | |
| 7043 | static bool resetSocketOptions (const int handle, const bool isDatagram, const bool allowBroadcast) noexcept |
| 7044 | { |
no outgoing calls
no test coverage detected