diff options
Diffstat (limited to 'protocols/WhatsApp/src/WASocketConnection.cpp')
-rw-r--r-- | protocols/WhatsApp/src/WASocketConnection.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/WhatsApp/src/WASocketConnection.cpp b/protocols/WhatsApp/src/WASocketConnection.cpp index 00e3aa9933..3d8744a91f 100644 --- a/protocols/WhatsApp/src/WASocketConnection.cpp +++ b/protocols/WhatsApp/src/WASocketConnection.cpp @@ -106,7 +106,7 @@ unsigned char WASocketConnection::read() int WASocketConnection::read(unsigned char *buf, int length)
{
- int result = Netlib_Recv(this->hConn, (char*)buf, length, 0);
+ int result = Netlib_Recv(this->hConn, (char*)buf, length, MSG_NODUMP);
if (result <= 0)
throw WAException(getLastErrorMsg(), WAException::SOCKET_EX, WAException::SOCKET_EX_RECV);
@@ -134,9 +134,9 @@ void WASocketConnection::forceShutdown() Netlib_Shutdown(this->hConn);
}
-void WASocketConnection::log(const char *str)
+void WASocketConnection::log(const char *prefix, const char *str)
{
- Netlib_Logf(WASocketConnection::hNetlibUser, "STR: %s", str);
+ Netlib_Logf(WASocketConnection::hNetlibUser, "%s%s", prefix, str);
}
WASocketConnection::~WASocketConnection()
|