Browse Source

show windows size and connection status

pull/180/head
orignal 10 years ago
parent
commit
51b850aa85
  1. 2
      HTTPServer.cpp
  2. 3
      Streaming.h

2
HTTPServer.cpp

@ -879,6 +879,8 @@ namespace util @@ -879,6 +879,8 @@ namespace util
s << " [out:" << it.second->GetSendQueueSize () << "][in:" << it.second->GetReceiveQueueSize () << "]";
s << "[buf:" << it.second->GetSendBufferSize () << "]";
s << "[RTT:" << it.second->GetRTT () << "]";
s << "[Window:" << it.second->GetWindowSize () << "]";
s << "[Status:" << (int)it.second->GetStatus () << "]";
s << "<br>"<< std::endl;
}
}

3
Streaming.h

@ -85,7 +85,7 @@ namespace stream @@ -85,7 +85,7 @@ namespace stream
enum StreamStatus
{
eStreamStatusNew,
eStreamStatusNew = 0,
eStreamStatusOpen,
eStreamStatusReset,
eStreamStatusClosing,
@ -110,6 +110,7 @@ namespace stream @@ -110,6 +110,7 @@ namespace stream
const i2p::data::IdentityEx& GetRemoteIdentity () const { return m_RemoteIdentity; };
bool IsOpen () const { return m_Status == eStreamStatusOpen; };
bool IsEstablished () const { return m_SendStreamID; };
StreamStatus GetStatus () const { return m_Status; };
StreamingDestination& GetLocalDestination () { return m_LocalDestination; };
void HandleNextPacket (Packet * packet);

Loading…
Cancel
Save