diff --git a/modules/listsockets.cpp b/modules/listsockets.cpp index 67a59075..8892e7fa 100644 --- a/modules/listsockets.cpp +++ b/modules/listsockets.cpp @@ -118,6 +118,7 @@ public: Row["SSL"] = pSocket->GetSSL() ? "Yes" : "No"; Row["Local"] = GetLocalHost(pSocket, true); Row["Remote"] = GetRemoteHost(pSocket, true); + // TODO: Traffic stats } return true; @@ -222,6 +223,8 @@ public: #endif Table.AddColumn("Local"); Table.AddColumn("Remote"); + Table.AddColumn("In"); + Table.AddColumn("Out"); while (!socks.empty()) { Csock* pSocket = socks.top().GetSock(); @@ -238,6 +241,8 @@ public: Table.SetCell("Local", GetLocalHost(pSocket, bShowHosts)); Table.SetCell("Remote", GetRemoteHost(pSocket, bShowHosts)); + Table.SetCell("In", CString::ToByteStr(pSocket->GetBytesRead())); + Table.SetCell("Out", CString::ToByteStr(pSocket->GetBytesWritten())); } PutModule(Table);