当前位置: 首页>>代码示例>>C#>>正文


C# HTTPMessage.RemoveTag方法代码示例

本文整理汇总了C#中OpenSource.UPnP.HTTPMessage.RemoveTag方法的典型用法代码示例。如果您正苦于以下问题:C# HTTPMessage.RemoveTag方法的具体用法?C# HTTPMessage.RemoveTag怎么用?C# HTTPMessage.RemoveTag使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在OpenSource.UPnP.HTTPMessage的用法示例。


在下文中一共展示了HTTPMessage.RemoveTag方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Validate_DISCOVERY


//.........这里部分代码省略.........
            MRE.WaitOne(5000, false);
            AbortCountDown();
            if (MSEARCHTable.Count != 0)
            {
                DISCOVERY = UPnPTestStates.Failed;
                AddEvent(LogImportance.High, "Discovery", "MSEARCH <<Version = 1.0>> Unexpected Response");
            }
            else
            {
                AddEvent(LogImportance.Remark, "Discovery", "MSEARCH <<Version = 1.0>> OK");
            }

            MSEARCHTable.Clear();
            rq.DirectiveObj = "*";
            rq.Version = "";
            rbuf = rq.RawPacket;
            ASocket.Send(rbuf, 0, rbuf.Length, d);
            MRE.Reset();
            StartCountDown(46, 91);
            MRE.WaitOne(5000, false);
            AbortCountDown();
            if (MSEARCHTable.Count != 0)
            {
                DISCOVERY = UPnPTestStates.Failed;
                AddEvent(LogImportance.High, "Discovery", "MSEARCH <<No Version>> Unexpected Response");
            }
            else
            {
                AddEvent(LogImportance.Remark, "Discovery", "MSEARCH <<No Version>> OK");
            }

            MSEARCHTable.Clear();
            rq.Version = "1.1";
            rq.RemoveTag("MAN");
            rbuf = rq.RawPacket;
            ASocket.Send(rbuf, 0, rbuf.Length, d);
            MRE.Reset();
            StartCountDown(51, 91);
            MRE.WaitOne(5000, false);
            AbortCountDown();
            if (MSEARCHTable.Count != 0)
            {
                DISCOVERY = UPnPTestStates.Failed;
                AddEvent(LogImportance.High, "Discovery", "MSEARCH <<No MAN>> Unexpected Response");
            }
            else
            {
                AddEvent(LogImportance.Remark, "Discovery", "MSEARCH <<No MAN>> OK");
            }

            MSEARCHTable.Clear();
            rq.AddTag("MAN", "\"ssdp:discover\"");
            rq.RemoveTag("MX");
            rbuf = rq.RawPacket;
            ASocket.Send(rbuf, 0, rbuf.Length, d);
            MRE.Reset();
            StartCountDown(56, 91);
            MRE.WaitOne(5000, false);
            AbortCountDown();
            if (MSEARCHTable.Count != 0)
            {
                DISCOVERY = UPnPTestStates.Failed;
                AddEvent(LogImportance.High, "Discovery", "MSEARCH <<No MX>> Unexpected Response");
            }
            else
            {
开发者ID:rvodden,项目名称:upnp-developertools-old,代码行数:67,代码来源:UPnPTestDiscovery.cs


注:本文中的OpenSource.UPnP.HTTPMessage.RemoveTag方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。