diff --git a/cwWebSock.cpp b/cwWebSock.cpp index 156dfca..4d5650d 100644 --- a/cwWebSock.cpp +++ b/cwWebSock.cpp @@ -783,3 +783,9 @@ cw::rc_t cw::websock::exec( handle_t h, unsigned timeOutMs ) 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)); +} diff --git a/cwWebSock.h b/cwWebSock.h index e87fb04..de6dece 100644 --- a/cwWebSock.h +++ b/cwWebSock.h @@ -56,6 +56,8 @@ namespace cw // Call periodically from the same thread to send/recv messages. rc_t exec( handle_t h, unsigned timeOutMs ); + + void report( handle_t h ); }