The description of structure ListConnInfo has been added in library rfb.
Also, codes which pass the information on connections for
Control Panel have been added.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@410 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/rfb/VNCServerST.cxx b/rfb/VNCServerST.cxx
index c4e0283..ae71a37 100644
--- a/rfb/VNCServerST.cxx
+++ b/rfb/VNCServerST.cxx
@@ -507,3 +507,16 @@
comparer->clear();
}
+
+bool VNCServerST::getConnInfo(ListConnInfo * listConn)
+{
+ listConn->Clear();
+ if (clients.empty())
+ return false;
+ std::list<VNCSConnectionST*>::iterator ci;
+ for (ci = clients.begin(); ci != clients.end(); ci++) {
+ listConn->addInfo((DWORD)(*ci), (*ci)->getSock()->getPeerAddress(),
+ (*ci)->getStartTime(), 4);
+ }
+ return true;
+}
\ No newline at end of file