IcmpV4Statistics.SourceQuenchesSent 属性

定义

获取已发送的 Internet 控制消息协议版本 4 (ICMPv4) 源 Quench 消息数。

public:
 abstract property long SourceQuenchesSent { long get(); };
public abstract long SourceQuenchesSent { get; }
member this.SourceQuenchesSent : int64
Public MustOverride ReadOnly Property SourceQuenchesSent As Long

属性值

一个 Int64 值,该值指定已发送的源 Quench 消息总数。

示例

以下示例显示此属性的值。

public static void ShowSourceQuenchData()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IcmpV4Statistics statistics = properties.GetIcmpV4Statistics();
    Console.WriteLine("  Source Quenches ..................... Sent: {0,-10}   Received: {1,-10}",
        statistics.SourceQuenchesSent, statistics.SourceQuenchesReceived);
}
Public Shared Sub ShowSourceQuenchData() 
    Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
    Dim statistics As IcmpV4Statistics = properties.GetIcmpV4Statistics()
    Console.WriteLine("  Source Quenches ..................... Sent: {0,-10}   Received: {1,-10}", statistics.SourceQuenchesSent, statistics.SourceQuenchesReceived)

End Sub

注解

当由于输出队列中空间不足而丢弃数据包时,会发送源 Quench 消息。 如果数据包到达太快而无法处理,目标计算机还可以发送源 Quench 消息。 源取消消息是对主机的请求,用于减少将流量发送到 Internet 目标的速率。

适用于