summaryrefslogtreecommitdiffstats
path: root/src/Common
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-05-20 17:00:33 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-05-20 17:00:33 +0200
commit96767ff85614974ff8c31686bce19001ec5cccd2 (patch)
treee9a66ebde9e6bfd2db81011e63d56834a8b4e943 /src/Common
parent776377bb21ee1cfe0bcdbc000f7c6fa0be227226 (diff)
downloadmad-96767ff85614974ff8c31686bce19001ec5cccd2.tar
mad-96767ff85614974ff8c31686bce19001ec5cccd2.zip
waitWhile-Methoden f?r Connection hinzugef?gt
Diffstat (limited to 'src/Common')
-rw-r--r--src/Common/ClientConnection.cpp8
-rw-r--r--src/Common/ClientConnection.h3
-rw-r--r--src/Common/Connection.h2
-rw-r--r--src/Common/LogManager.cpp3
4 files changed, 14 insertions, 2 deletions
diff --git a/src/Common/ClientConnection.cpp b/src/Common/ClientConnection.cpp
index d061c8d..ee9f5cf 100644
--- a/src/Common/ClientConnection.cpp
+++ b/src/Common/ClientConnection.cpp
@@ -45,6 +45,14 @@ bool ClientConnection::isConnected() const {
return connection->isConnected();
}
+void ClientConnection::waitWhileConnecting() const {
+ connection->waitWhileConnecting();
+}
+
+void ClientConnection::waitWhileConnected() const {
+ connection->waitWhileConnected();
+}
+
bool ClientConnection::disconnect() {
connection->disconnect();
return true;
diff --git a/src/Common/ClientConnection.h b/src/Common/ClientConnection.h
index 4710bd4..a455c29 100644
--- a/src/Common/ClientConnection.h
+++ b/src/Common/ClientConnection.h
@@ -49,6 +49,9 @@ class ClientConnection : public Connection {
bool isConnecting() const;
bool isConnected() const;
+ void waitWhileConnecting() const;
+ void waitWhileConnected() const;
+
virtual bool disconnect();
//virtual void* getCertificate(size_t *size) const;
//virtual void* getPeerCertificate(size_t *size) const;
diff --git a/src/Common/Connection.h b/src/Common/Connection.h
index 0cfc742..5ac46a2 100644
--- a/src/Common/Connection.h
+++ b/src/Common/Connection.h
@@ -65,8 +65,6 @@ class Connection {
//virtual void* getCertificate(size_t *size) const = 0;
//virtual void* getPeerCertificate(size_t *size) const = 0;
- virtual
-
void setAuthenticated() {
authenticated = true;
}
diff --git a/src/Common/LogManager.cpp b/src/Common/LogManager.cpp
index b17d916..bd83a5e 100644
--- a/src/Common/LogManager.cpp
+++ b/src/Common/LogManager.cpp
@@ -73,6 +73,9 @@ void LogManager::configFinished() {
if(loggers.empty())
registerLogger(static_cast<Logger*>(&consoleLogger));
+ // TODO Debug
+ consoleLogger.Logger::setLevel(LoggerBase::DEBUG);
+
queueLock.lock();
configured = true;
queueLock.unlock();