本文整理汇总了C++中Stats::TotalTimeouts方法的典型用法代码示例。如果您正苦于以下问题:C++ Stats::TotalTimeouts方法的具体用法?C++ Stats::TotalTimeouts怎么用?C++ Stats::TotalTimeouts使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Stats
的用法示例。
在下文中一共展示了Stats::TotalTimeouts方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DisplayStatistics
void DisplayStatistics(const RECT& rect, const Stats& stats, HDC& hdc) {
int xpos = rect.left + 1;
int ypos = rect.top + 1;
DisplayElapsedTime(stats.ElapsedTransferTime(), hdc, xpos, ypos);
DisplaySendProtocolEfficiency(stats.SendProtocolEfficiency(), hdc, xpos, ypos);
DisplayReceiveProtocolEfficiency(stats.ReceiveProtocolEfficiency(), hdc, xpos, ypos);
DisplayEffectiveSendBPS(stats.EffectiveSendBPS(), hdc, xpos, ypos);
DisplayEffectiveReceiveBPS(stats.EffectiveReceiveBPS(), hdc, xpos, ypos);
DisplayNumPacketsSent(stats.NumPacketsSent(), hdc, xpos, ypos);
DisplayBitErrorRate(stats.BitErrorRate(), hdc, xpos, ypos);
//DisplayNumACKs(stats.NumACKs(), hdc, xpos, ypos);
//DisplayNumNAKs(stats.NumNAKs(), hdc, xpos, ypos);
DisplayTotalBitsSent(stats.TotalBitsSent(), hdc, xpos, ypos);
DisplayTotalBitsReceived(stats.TotalBitsReceived(), hdc, xpos, ypos);
DisplayResponseTime(stats.ResponseTime(), hdc, xpos, ypos);
DisplayTotalTimeouts(stats.TotalTimeouts(), hdc, xpos, ypos);
DisplayTotalRequests(stats.TotalRequests(), hdc, xpos, ypos);
DisplayAverageSendPadding(stats.AverageSendPadding(), hdc, xpos, ypos);
DisplayAverageReceivePadding(stats.AverageReceivePadding(), hdc, xpos, ypos);
DisplayPacketsSentPerSecond(stats.PacketsSentPerSecond(), hdc, xpos, ypos);
DisplayPacketsReceivedPerSecond(stats.PacketsReceivedPerSecond(), hdc, xpos, ypos);
}
示例2: HandleStats
int HandleStats(CRITICAL_SECTION& section, Stats& stats, int cmd, int value) {
EnterCriticalSection(§ion);
switch(cmd) {
case 1:
stats.SetTotalPacketsSent(value);
break;
case 2:
stats.SetTotalPacketsReceived(value);
break;
case 3:
stats.SetTotalErrors(value);
break;
case 4:
stats.SetTotalACKsReceived(value);
break;
case 5:
stats.SetTotalACKsSent(value);
break;
case 6:
stats.SetTotalNAKsReceived(value);
break;
case 7:
stats.SetTotalNAKsSent(value);
break;
case 8:
stats.SetTotalTimeouts(value);
break;
case 9:
stats.SetTotalPadding(value);
break;
case 10:
stats.SetTotalRequests(value);
break;
case 11:
stats.SetElapsedTime(value);
break;
case 12:
stats.SetUsefulBitsSent(value);
break;
case 13:
stats.SetUsefulBitsReceived(value);
break;
case 14:
stats.SetTotalResponseTime(value);
break;
case 15:
return stats.GetTotalPacketsSent();
break;
case 16:
return stats.GetTotalPacketsReceived();
break;
case 17:
return stats.GetTotalErrors();
break;
case 18:
return stats.GetTotalACKsReceived();
break;
case 19:
return stats.GetTotalACKsSent();
break;
case 20:
return stats.GetTotalNAKsReceived();
break;
case 21:
return stats.GetTotalNAKsSent();
break;
case 22:
return stats.GetTotalTimeouts();
break;
case 23:
return stats.GetTotalPadding();
break;
case 24:
return stats.GetTotalRequests();
break;
case 25:
return stats.GetElapsedTime();
break;
case 26:
return stats.GetUsefulBitsSent();
break;
case 27:
return stats.GetUsefulBitsReceived();
break;
case 28:
return stats.GetTotalResponseTime();
break;
case 29:
return stats.SendProtocolEfficiency();
break;
case 30:
return stats.ReceiveProtocolEfficiency();
break;
case 31:
return stats.EffectiveSendBPS();
break;
case 32:
return stats.EffectiveReceiveBPS();
break;
case 33:
//.........这里部分代码省略.........