Archives by Category
Contact
- Hagen Paul Pfeifer
- http://jauu.net
- hagen@jauu.net (encrypted preferred)
- KeyId: 0x98350C22
- Telephone: +49 174 5455209
Follow this blog
Netsend TCP Options
- Published in: networking
- | Time: 00:23:11 CEST
- | SHA1: 842e0927bec4b6fee1a8b7ab3febad01a28e268c
Because of massive flaming I reintroduced the TCP Option to netsend again. But this time not via the normal commandline options (this SHOULD be implemented as well), in opposite I introduced a new option “-O ”. The “O” option (like Output) is introduced to replace the current machine parseable output.
The advantages are clear: the current machine output use a fixed standard format that cannot be reordered or shrinked because of backward compatibility. The new O option let the user the ability to output only requested values. The output is more easy to parse for gnuplot (e.g.) and also to replace the human output because the user can focus on the really interesting values. Examples? NULL problemo:
while true; do ./netsend tcp rec;done &
./netsend -O "%n bytes transmitted/received in %t seconds\n" tcp t file localhost
./netsend -O "ECN: %Te SACK: %Ts" tcp t /etc/Muttrc localhost