It seems the most obvious thing, but I just can\'t work out how to get the length of bytes sent over a network using a TCPClient and TCPListener?
I have a class that inherits from TcpClient. In that class I have a method to process responses. In that method I call I get the NetworkStream with MyBase.GetStream and call Read on it.
I have a TcpClient object which sends some data to server, using its underlying NetworkStream.Write().
I have a do while loop that reads a buffer from a NetworkStream object the while condition is networkStream.CanRead so as long as it can read, it should continue reading from the buffer. Only problem