コード例 #1
0
	// PRIVATE

	void StartClient()
	{
		_settings.display.text += "Connecting to server at: " + _network.GetConnectionAddress() + ":" + _network.GetServerPort() + "\n";

		string error;
		if( _network.Start( out error ) )
		{
			_settings.display.text += "Waiting for reply...\n\n";
		}
		else
		{
			_settings.display.text += $"Connection attempt failed with error:\n{error}\n\n";
		}
	}