in reply to Re: function to count pending packets in TCP socket
in thread function to count pending packets in TCP socket
Agree with salva, it sounds like Anonymous Andreas is describing UDP - where data can be lost due to packet loss since there is no acknowledgement unless you build something into the application layer. And if you're going to do that, you might as well use TCP, which handles acknowledgements for you. Take Telnet for example, once connected, a pretty simple protocol that just passes characters back and forth between client and server; yet riding on TCP, transmission is reliable. Unless I'm missing something from the OP?
In Section
Seekers of Perl Wisdom