mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 12:24:19 +00:00
show windows size and connection status
This commit is contained in:
parent
b29e94005d
commit
51b850aa85
@ -878,7 +878,9 @@ namespace util
|
|||||||
s << " [" << it.second->GetNumSentBytes () << ":" << it.second->GetNumReceivedBytes () << "]";
|
s << " [" << it.second->GetNumSentBytes () << ":" << it.second->GetNumReceivedBytes () << "]";
|
||||||
s << " [out:" << it.second->GetSendQueueSize () << "][in:" << it.second->GetReceiveQueueSize () << "]";
|
s << " [out:" << it.second->GetSendQueueSize () << "][in:" << it.second->GetReceiveQueueSize () << "]";
|
||||||
s << "[buf:" << it.second->GetSendBufferSize () << "]";
|
s << "[buf:" << it.second->GetSendBufferSize () << "]";
|
||||||
s << "[RTT:" << it.second->GetRTT () << "]";
|
s << "[RTT:" << it.second->GetRTT () << "]";
|
||||||
|
s << "[Window:" << it.second->GetWindowSize () << "]";
|
||||||
|
s << "[Status:" << (int)it.second->GetStatus () << "]";
|
||||||
s << "<br>"<< std::endl;
|
s << "<br>"<< std::endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -85,7 +85,7 @@ namespace stream
|
|||||||
|
|
||||||
enum StreamStatus
|
enum StreamStatus
|
||||||
{
|
{
|
||||||
eStreamStatusNew,
|
eStreamStatusNew = 0,
|
||||||
eStreamStatusOpen,
|
eStreamStatusOpen,
|
||||||
eStreamStatusReset,
|
eStreamStatusReset,
|
||||||
eStreamStatusClosing,
|
eStreamStatusClosing,
|
||||||
@ -108,8 +108,9 @@ namespace stream
|
|||||||
uint32_t GetRecvStreamID () const { return m_RecvStreamID; };
|
uint32_t GetRecvStreamID () const { return m_RecvStreamID; };
|
||||||
std::shared_ptr<const i2p::data::LeaseSet> GetRemoteLeaseSet () const { return m_RemoteLeaseSet; };
|
std::shared_ptr<const i2p::data::LeaseSet> GetRemoteLeaseSet () const { return m_RemoteLeaseSet; };
|
||||||
const i2p::data::IdentityEx& GetRemoteIdentity () const { return m_RemoteIdentity; };
|
const i2p::data::IdentityEx& GetRemoteIdentity () const { return m_RemoteIdentity; };
|
||||||
bool IsOpen () const { return m_Status == eStreamStatusOpen; };
|
bool IsOpen () const { return m_Status == eStreamStatusOpen; };
|
||||||
bool IsEstablished () const { return m_SendStreamID; };
|
bool IsEstablished () const { return m_SendStreamID; };
|
||||||
|
StreamStatus GetStatus () const { return m_Status; };
|
||||||
StreamingDestination& GetLocalDestination () { return m_LocalDestination; };
|
StreamingDestination& GetLocalDestination () { return m_LocalDestination; };
|
||||||
|
|
||||||
void HandleNextPacket (Packet * packet);
|
void HandleNextPacket (Packet * packet);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user