다음을 통해 공유


TcpStatistics.SegmentsSent 속성

정의

보낸 TCP(Transmission Control Protocol) 세그먼트 수를 가져옵니다.

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

속성 값

보낸 총 TCP 세그먼트 수를 나타내는 Int64 값입니다.

예제

다음 코드 예제에서는 세그먼트 정보를 표시합니다.

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

설명

이 데이터에는 현재 설정된 연결을 위해 전송된 세그먼트가 포함되지만 다시 전송된 옥텟만 포함하는 세그먼트는 포함되지 않습니다.

적용 대상