withSIX.Play.Core.Games.Legacy.RunningGame.ProcessHostIp C# (CSharp) Method

ProcessHostIp() private method

private ProcessHostIp ( SessionCommand session ) : void
session withSIX.Play.Core.Games.Legacy.Arma.Commands.SessionCommand
return void
        void ProcessHostIp(SessionCommand session) {
            var currentHostIp = _hostIP == null ? null : _hostIP.ToString();
            if (session.HostIP == currentHostIp && session.Hosting == _hosting)
                return;

            _hosting = session.Hosting;
            var addr = session.HostIP;
            _hostIP = string.IsNullOrWhiteSpace(addr) ? null : new ServerAddress(addr);

            CalculatedGameSettings.RaiseEvent(new MyActiveServerAddressChanged(_hostIP));
        }