MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / init

Method init

MonaBase/sources/Socket.cpp:460–472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

458private:
459
460 bool init(Exception& ex, IPAddress::Family family) {
461 lock_guard<mutex> lock(_mutexInit);
462 if (_initialized)
463 return true;
464 if (!Net::InitializeNetwork(ex))
465 return false;
466 _sockfd = ::socket(family == IPAddress::IPv6 ? AF_INET6 : AF_INET, type, 0);
467 if (_sockfd == NET_INVALID_SOCKET)
468 return false;
469 _initialized = true;
470 initSettings();
471 return _initialized;
472 }
473
474 void initSettings() {
475 Exception ex;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected