cwWebSock.cpp : Added report().

This commit is contained in:
kevin 2024-03-25 14:31:03 -04:00
parent 230f3841d7
commit 488648a967
2 changed files with 8 additions and 0 deletions

View File

@ -783,3 +783,9 @@ cw::rc_t cw::websock::exec( handle_t h, unsigned timeOutMs )
return rc; return rc;
} }
void cw::websock::report( handle_t h )
{
websock_t* p = _handleToPtr(h);
printf("Websock: msgs sent:%i recvd:%i que count:%i\n",p->_sendMsgCnt,p->_recvMsgCnt,count(p->_qH));
}

View File

@ -57,6 +57,8 @@ namespace cw
// Call periodically from the same thread to send/recv messages. // Call periodically from the same thread to send/recv messages.
rc_t exec( handle_t h, unsigned timeOutMs ); rc_t exec( handle_t h, unsigned timeOutMs );
void report( handle_t h );
} }
} }