mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
Log received udp messages as b64-encoded strings. These match what the
relay's now logging
This commit is contained in:
parent
1e6ff9b33c
commit
3f59b31d51
1 changed files with 5 additions and 1 deletions
|
@ -196,7 +196,11 @@ relaycon_receive( void* closure, int socket )
|
|||
|
||||
ssize_t nRead = recvfrom( socket, buf, sizeof(buf), 0, /* flags */
|
||||
(struct sockaddr*)&from, &fromlen );
|
||||
XP_LOGF( "%s: read %d bytes", __func__, nRead );
|
||||
|
||||
gchar* b64 = g_base64_encode( (const guchar*)buf,
|
||||
((0 <= nRead)? nRead : 0) );
|
||||
XP_LOGF( "%s: read %d bytes ('%s')", __func__, nRead, b64 );
|
||||
g_free( b64 );
|
||||
if ( 0 <= nRead ) {
|
||||
const XP_U8* ptr = buf;
|
||||
const XP_U8* end = buf + nRead;
|
||||
|
|
Loading…
Reference in a new issue