Created
January 13, 2016 16:11
-
-
Save justjanne/fe92ef8e1bbd194ad154 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/common/protocol.h b/src/common/protocol.h | |
index ba70530..afdb598 100644 | |
--- a/src/common/protocol.h | |
+++ b/src/common/protocol.h | |
@@ -37,8 +37,10 @@ enum Type { | |
enum Feature { | |
- Encryption = 0x01, | |
- Compression = 0x02 | |
+ //Encryption = 0x01, | |
+ //Compression = 0x02 | |
+ Encryption = 0x00, | |
+ Compression = 0x00 | |
}; | |
diff --git a/src/common/protocols/datastream/datastreampeer.cpp b/src/common/protocols/datastream/datastreampeer.cpp | |
index d3bd110..46b17a9 100644 | |
--- a/src/common/protocols/datastream/datastreampeer.cpp | |
+++ b/src/common/protocols/datastream/datastreampeer.cpp | |
@@ -63,6 +63,8 @@ void DataStreamPeer::processMessage(const QByteArray &msg) | |
close("Peer sent corrupt data, closing down!"); | |
return; | |
} | |
+ | |
+ qWarning() << "D: " << list; | |
// if no sigproxy is set, we're in handshake mode | |
if (!signalProxy()) | |
diff --git a/src/common/protocols/legacy/legacypeer.cpp b/src/common/protocols/legacy/legacypeer.cpp | |
index 6c4a716..2529763 100644 | |
--- a/src/common/protocols/legacy/legacypeer.cpp | |
+++ b/src/common/protocols/legacy/legacypeer.cpp | |
@@ -130,6 +130,8 @@ void LegacyPeer::writeMessage(const QVariant &item) | |
void LegacyPeer::handleHandshakeMessage(const QVariant &msg) | |
{ | |
QVariantMap m = msg.toMap(); | |
+ | |
+ qWarning() << "L: " << m; | |
QString msgType = m["MsgType"].toString(); | |
if (msgType.isEmpty()) { | |
@@ -350,6 +352,8 @@ void LegacyPeer::handlePackedFunc(const QVariant &packedFunc) | |
qWarning() << Q_FUNC_INFO << "Received incompatible data:" << packedFunc; | |
return; | |
} | |
+ | |
+ qWarning() << "L: " << params; | |
// TODO: make sure that this is a valid request type | |
RequestType requestType = (RequestType)params.takeFirst().value<int>(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment