public void ResetStatistics() { fBytesSent = 0; /* if we have still bytes in the buffer, we'll still want to count then against future "received" counts */ if (fBuffer != null) fBytesReceived = fBufferEnd - fBufferStart; else fBytesReceived = 0; }