Here is the code in 2.0.5
http://sourceforge.net/p/iperf/code/HEAD/tree/trunk/src/Server.cpp
// terminate when datagram begins with negative index
// the datagram ID should be correct, just negated
if ( reportstruct->packetID < 0 ) {
reportstruct->packetID = -reportstruct->packetID;
currLen = -1;
}
Bob
-----Original Message-----
From: Bob (Robert) McMahon
Sent: Friday, August 22, 2014 10:11 AM
To: 'Martin T'; [email protected]
Subject: RE: [Iperf-users] How does Iperf server detect that the client has
stopped transmitting and it should send the server report?
Yes, a negative sequence number in the packet payload causes the server to
close the UDP socket and send a final packet back to the client.
http://sourceforge.net/p/iperf2/code/ci/master/tree/src/Server.cpp
// terminate when datagram begins with negative index
// the datagram ID should be correct, just negated
if ( reportstruct->packetID < 0 ) {
reportstruct->packetID = -reportstruct->packetID;
currLen = -1;
running = 0;
}
Bob
-----Original Message-----
From: Martin T [mailto:[email protected]]
Sent: Friday, August 22, 2014 2:20 AM
To: [email protected]
Subject: [Iperf-users] How does Iperf server detect that the client has stopped
transmitting and it should send the server report?
Hi,
if I execute "iperf -c 10.10.10.1 -fm -t 10 -u -b 50m", then am I
correct that the last datagram sent by the Iperf client includes a
special pattern which is an indication for Iperf server to send the
server report? First bytes of the last datagram should be like
ff:ff:fc:ac:53:f6:f1:57:00:04:93:b4,
ff:ff:ff:a9:53:f7:09:8e:00:0e:34:ac, etc while non-last datagrams
begin with bytes 00:00:00:53:53:f7:09:8e:00:0d:7c:ee,
00:00:00:03:53:f7:09:8d:00:0e:64:0f, etc.
thanks,
Martin
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Iperf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iperf-users
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Iperf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iperf-users