cwSocket.cpp : Added more reporting from test callback.
This commit is contained in:
parent
fe142ad7a8
commit
de306242bb
@ -1114,11 +1114,18 @@ namespace cw
|
||||
{
|
||||
rc_t rc;
|
||||
char addr[ INET_ADDRSTRLEN+1 ];
|
||||
|
||||
printf("type:%i user:%i conn:%i ", cbId, userId, connId );
|
||||
|
||||
if((rc = sock::addrToString( srcAddr, addr, INET_ADDRSTRLEN )) == kOkRC )
|
||||
{
|
||||
printf("from user:%i conn:%i at %s : %s ", userId, connId, addr, (const char*)byteA );
|
||||
printf("from %s ", addr );
|
||||
}
|
||||
|
||||
if( byteA != nullptr )
|
||||
printf(" : %s ", (const char*)byteA);
|
||||
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user