From 488648a9675281d4860fa6349b828303e33da34d Mon Sep 17 00:00:00 2001 From: kevin Date: Mon, 25 Mar 2024 14:31:03 -0400 Subject: [PATCH] cwWebSock.cpp : Added report(). --- cwWebSock.cpp | 6 ++++++ cwWebSock.h | 2 ++ 2 files changed, 8 insertions(+) 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 ); }