CSharpRTMP.Core.NetIO.TCPAcceptor.GetStats C# (CSharp) Method

GetStats() public method

public GetStats ( Variant info, uint namespaceId ) : void
info Variant
namespaceId uint
return void
        public override void GetStats(Variant info, uint namespaceId)
        {
            info.SetValue(Parameters);
            info.Add("id",(((ulong)namespaceId)<<32)| Id);
            info.Add("enabled",_enabled);
            info.Add("acceptedConnectionsCount", _acceptedCount);
            info.Add("droppedConnectionsCount", _droppedCount);
            if (_pApplication != null)
            {
                info.Add("appId", (((ulong) namespaceId) << 32) | Application.Id);
                info.Add("appName", Application.Name);
            }
            else
            {
                info.Add("appId",((ulong) namespaceId) << 32);
                info.Add("appName", "");
            }
        }