Code/ServerApp/Source/ServerNetworking.cpp
//=================================================================================================
// Initialize Networking and start listening thread
//=================================================================================================
Initialize Networking and start listening thread
Initialize Networking and start listening thread
bool Startup( )
{	
	if( !NetImgui::Internal::Network::Startup() )
	{
		printf("Could not initialize network library : %d\n" , WSAGetLastError());		
		return false;
	}
	gActiveClientThreadCount = 0;	
	std::thread(NetworkConnectRequest_Receive).detach();
	std::thread(NetworkConnectRequest_Send).detach();
	return true;
}
bool Startup ( ) { if ( ! NetImgui :: Internal :: Network :: Startup ( ) ) { printf ( " \n " , WSAGetLastError ( ) ) ; return false ; } gActiveClientThreadCount = 0 ; std :: thread ( NetworkConnectRequest_Receive ) . detach ( ) ; std :: thread ( NetworkConnectRequest_Send ) . detach ( ) ; return true ; }
Initialize Networking and start listening thread
Initialize Networking and start listening thread
// Relying on shared network implementation for Winsock Init