summaryrefslogtreecommitdiff
path: root/client/SslClient.cpp
diff options
context:
space:
mode:
authorAlex Borisov <borisov.alexandr@rambler.ru>2011-11-12 00:42:46 +0200
committerAlex Borisov <borisov.alexandr@rambler.ru>2011-11-12 00:42:46 +0200
commit348104dd920480815504c28eaf12e193fd3e9ce9 (patch)
treeee2766908b00a36797204c0747300fc6f787ca37 /client/SslClient.cpp
parentd9a7ccf4eb0fe6d44cf1a7361b331889a98ff85b (diff)
Read all configs from server, everywhere. Docs. Code to represent server reconnection problem
Diffstat (limited to 'client/SslClient.cpp')
-rw-r--r--client/SslClient.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/client/SslClient.cpp b/client/SslClient.cpp
index 6d13369..c04667b 100644
--- a/client/SslClient.cpp
+++ b/client/SslClient.cpp
@@ -78,7 +78,7 @@ void SslClient::SendRequest(RequestType type)
{
Logger::Trace("Already connected to %s:%u\n", server.toLocal8Bit().data(), port);
}
-
+
unsigned char rcode = 0x00;
switch (type)
{
@@ -109,6 +109,10 @@ void SslClient::Connected()
void SslClient::Disconnected()
{
Logger::Info("Disconnected from server %s\n", server.toStdString().c_str());
+
+#ifdef DEBUG
+ SendRequest(StaticProxyList);
+#endif
}
void SslClient::DataRecieved()
@@ -154,6 +158,11 @@ void SslClient::DataRecieved()
data.remove(0, 3);
data.remove(length-1, 3);
+#ifdef DEBUG
+ Logger::Debug("Disconnecting from server\n");
+ sslSocket.disconnectFromHost();
+#endif
+
emit ReplyRecieved(type, data);
}