TcpStatistics.SegmentsReceived Propiedad
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Obtiene el número de segmentos TCP (Protocolo de control de transmisión) recibidos.
public:
abstract property long SegmentsReceived { long get(); };
public abstract long SegmentsReceived { get; }
member this.SegmentsReceived : int64
Public MustOverride ReadOnly Property SegmentsReceived As Long
Valor de propiedad
Valor Int64 que especifica el número total de segmentos TCP recibidos.
Ejemplos
En el ejemplo de código siguiente se muestra información de segmento.
void ShowTcpSegmentData()
{
IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties();
TcpStatistics ^ tcpstat = properties->GetTcpIPv4Statistics();
Console::WriteLine( " Segment Data:" );
Console::WriteLine( " Received ........................... : {0}",
tcpstat->SegmentsReceived );
Console::WriteLine( " Sent ................................ : {0}",
tcpstat->SegmentsSent );
Console::WriteLine( " Retransmitted ....................... : {0}",
tcpstat->SegmentsResent );
Console::WriteLine( " Resent with reset ................... : {0}",
tcpstat->ResetsSent );
}
public static void ShowTcpSegmentData()
{
IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
TcpStatistics tcpstat = properties.GetTcpIPv4Statistics();
Console.WriteLine(" Segment Data:");
Console.WriteLine(" Received ........................... : {0}",
tcpstat.SegmentsReceived);
Console.WriteLine(" Sent ................................ : {0}",
tcpstat.SegmentsSent);
Console.WriteLine(" Retransmitted ....................... : {0}",
tcpstat.SegmentsResent);
Console.WriteLine(" Resent with reset ................... : {0}",
tcpstat.ResetsSent);
Console.WriteLine();
}
Public Shared Sub ShowTcpSegmentData()
Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
Dim tcpstat As TcpStatistics = properties.GetTcpIPv4Statistics()
Console.WriteLine(" Segment Data:")
Console.WriteLine(" Received ........................... : {0}", tcpstat.SegmentsReceived)
Console.WriteLine(" Sent ................................ : {0}", tcpstat.SegmentsSent)
Console.WriteLine(" Retransmitted ....................... : {0}", tcpstat.SegmentsResent)
Console.WriteLine(" Resent with reset ................... : {0}", tcpstat.ResetsSent)
End Sub
Comentarios
Estos datos incluyen segmentos con errores y segmentos recibidos en las conexiones establecidas actualmente.