MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / Initialise

Method Initialise

src/openrct2/network/Socket.cpp:100–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98 }
99
100 bool Initialise()
101 {
102 if (!_isInitialised)
103 {
104 LOG_VERBOSE("WSAStartup()");
105 WSADATA wsa_data;
106 if (WSAStartup(MAKEWORD(2, 2), &wsa_data) != 0)
107 {
108 LOG_ERROR("Unable to initialise winsock.");
109 return false;
110 }
111 _isInitialised = true;
112 }
113 return true;
114 }
115
116 ~WSA() noexcept
117 {

Callers 1

InitialiseWSAFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected