mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
use app define, not relay's
This commit is contained in:
parent
68e7f303b0
commit
3d9ee4b9f9
1 changed files with 2 additions and 2 deletions
|
@ -222,7 +222,7 @@ relaycon_receive( GIOChannel* source, GIOCondition condition, gpointer data )
|
|||
((0 <= nRead)? nRead : 0) );
|
||||
XP_LOGF( "%s: read %zd bytes ('%s')", __func__, nRead, b64 );
|
||||
g_free( b64 );
|
||||
#ifdef LOG_PACKET_MD5SUMS
|
||||
#ifdef COMMS_CHECKSUM
|
||||
gchar* sum = g_compute_checksum_for_data( G_CHECKSUM_MD5, buf, nRead );
|
||||
XP_LOGF( "%s: read %zd bytes ('%s')(sum=%s)", __func__, nRead, b64, sum );
|
||||
g_free( sum );
|
||||
|
@ -349,7 +349,7 @@ sendIt( RelayConStorage* storage, const XP_U8* msgbuf, XP_U16 len )
|
|||
ssize_t nSent = sendto( storage->socket, msgbuf, len, 0, /* flags */
|
||||
(struct sockaddr*)&storage->saddr,
|
||||
sizeof(storage->saddr) );
|
||||
#ifdef LOG_PACKET_MD5SUMS
|
||||
#ifdef COMMS_CHECKSUM
|
||||
gchar* sum = g_compute_checksum_for_data( G_CHECKSUM_MD5, msgbuf, len );
|
||||
XP_LOGF( "%s: sent %d bytes with sum %s", __func__, len, sum );
|
||||
g_free( sum );
|
||||
|
|
Loading…
Reference in a new issue