I have a small TCP client that connects to a server. Periodically during the connection
I’d like to be able to query the stream to see how much data has queued up (the sender may be faster than the receiver, so i’d like to be able to throw away packets occasionally)
Is there any way to determine how much data is queued up on a TCP client stream in C#?
I have a small TCP client that connects to a server. Periodically during the
Share
You can use the TcpClient.Available property for that.
From MSDN: