MCPcopy Create free account
hub / github.com/Panzerschrek/Chasm-Reverse / Net

Method Net

PanzerChasm/net/net.cpp:607–626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

605};
606
607Net::Net()
608{
609 platform_data_.reset( new PlatformData );
610
611#ifdef _WIN32
612 WORD version;
613 version = MAKEWORD(2, 0);
614
615 const int error_code= ::WSAStartup( version, &platform_data_->ws_data );
616 if( error_code != 0 )
617 return;
618
619 Log::Info( "WinSock2 started" );
620
621#else
622 // TODO
623#endif
624
625 successfully_started_= true;
626}
627
628Net::~Net()
629{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected