| 1 | Index: libs/libmyth/mythsocket.cpp
|
|---|
| 2 | ===================================================================
|
|---|
| 3 | --- libs/libmyth/mythsocket.cpp (revision 13874)
|
|---|
| 4 | +++ libs/libmyth/mythsocket.cpp (working copy)
|
|---|
| 5 | @@ -7,8 +7,8 @@
|
|---|
| 6 | #include <sys/select.h>
|
|---|
| 7 | #include <cassert>
|
|---|
| 8 |
|
|---|
| 9 | -#define SLOC(a) QString("MythSocket(%1:%2): ").arg((unsigned long)a, 0, 16)\
|
|---|
| 10 | - .arg(a->socket())
|
|---|
| 11 | +#define SLOC(a) QString("MythSocket(%1:%2:%3): ").arg((unsigned long)a, 0, 16)\
|
|---|
| 12 | + .arg(a->socket()).arg(a->peerAddress().toString())
|
|---|
| 13 | #define LOC SLOC(this)
|
|---|
| 14 |
|
|---|
| 15 | const uint MythSocket::kSocketBufferSize = 128000;
|
|---|
| 16 | @@ -269,7 +269,7 @@
|
|---|
| 17 |
|
|---|
| 18 | if ((print_verbose_messages & VB_NETWORK) != 0)
|
|---|
| 19 | {
|
|---|
| 20 | - QString msg = QString("write -> %1 %2")
|
|---|
| 21 | + QString msg = QString("write -> %1 '%2'")
|
|---|
| 22 | .arg(socket(), 2).arg(payload);
|
|---|
| 23 |
|
|---|
| 24 | if ((print_verbose_messages != VB_ALL) && msg.length() > 88)
|
|---|
| 25 | @@ -291,6 +291,7 @@
|
|---|
| 26 | }
|
|---|
| 27 |
|
|---|
| 28 | int temp = writeBlock(payload.data() + written, size);
|
|---|
| 29 | + VERBOSE(VB_NETWORK,QString("writeStringList: writeBlock('%1' + '%2', '%3') == %4").arg(payload.data()).arg(written).arg(size).arg(temp));
|
|---|
| 30 | if (temp > 0)
|
|---|
| 31 | {
|
|---|
| 32 | written += temp;
|
|---|