MCPcopy Create free account
hub / github.com/HumbleNet/HumbleNet / initSockets

Function initSockets

3rdparty/Amalgamate/juce_core_amalgam.cpp:7027–7041  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7025namespace 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 {

Callers 2

StreamingSocketMethod · 0.85
DatagramSocketMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected