本文整理汇总了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
{