Browse Source

show send buffer size

pull/151/head
orignal 10 years ago
parent
commit
908404ab62
  1. 1
      HTTPServer.cpp
  2. 1
      Streaming.h

1
HTTPServer.cpp

@ -839,6 +839,7 @@ namespace util @@ -839,6 +839,7 @@ namespace util
s << it.first << "->" << i2p::client::context.GetAddressBook ().ToAddress(it.second->GetRemoteIdentity ()) << " ";
s << " [" << it.second->GetNumSentBytes () << ":" << it.second->GetNumReceivedBytes () << "]";
s << " [out:" << it.second->GetSendQueueSize () << "][in:" << it.second->GetReceiveQueueSize () << "]";
s << " [buf:" << it.second->GetSendBufferSize () << "]";
s << "<br>"<< std::endl;
}
}

1
Streaming.h

@ -115,6 +115,7 @@ namespace stream @@ -115,6 +115,7 @@ namespace stream
size_t GetNumReceivedBytes () const { return m_NumReceivedBytes; };
size_t GetSendQueueSize () const { return m_SentPackets.size (); };
size_t GetReceiveQueueSize () const { return m_ReceiveQueue.size (); };
size_t GetSendBufferSize () const { return m_SendBuffer.rdbuf ()->in_avail (); };
private:

Loading…
Cancel
Save