Hi
I'm working on a patch that might saturate the network bandwidth, but I
don't want to send more data than the network can bear. The most right
outlet of [tcpclient] reports how many bytes it has sent. So what I'm
trying to do is to count the bytes I'm sending to [tcpclient] and
subtracting the sent bytes from it, assuming that when the number goes
up, the upload bandwidth is saturated. However, when I slowly increase
the rate until the point where I expect it to saturate the bandwidth, I
get _negative_ numbers (more bytes have been sent to the network than I
sent to [tcpclient]??). When this happens, the output of [tcpclient]
looks like something like this:
print: sent 2048
print: sent 2048
print: sent 2048
print: sent 2048
print: sent 2048
print: sent 2048
print: sent 2048
print: sent 4096
print: sent 6144
print: sent 8192
print: sent 10240
print: sent 12288
print: sent 14336
print: sent 16384
print: sent 2048
print: sent 2048
print: sent 4096
print: sent 6144
print: sent 8192
Either I am misunderstanding what the 'sent' message means or it does
not do what it is supposed to do. What is it?
Roman