}
}
+TCPServer::ConnectionInfoList TCPServer::get_connected(void) {
+#ifdef DEBUG
+ cerr << __FILE__ << ": get_connected()" << endl;
+#endif // DEBUG
+ TCPServer::ConnectionInfoList con;
+ Glib::Mutex::Lock lock(connections_mutex);
+ for (ConnectionList::const_iterator i = connections.begin();
+ i != connections.end(); i++) {
+ TCPServer::ConnectionInfo ci =
+ { (*i)->get_peerhost(), (*i)->get_peerport() };
+ con.push_back(ci);
+ }
+ return con;
+}
+
} // namespace Server
} // namespace PlaQui