From 55aed815e199123295138aec51c949fea9826559 Mon Sep 17 00:00:00 2001 From: kevin Date: Mon, 25 Mar 2024 14:29:58 -0400 Subject: [PATCH] cwUi.h/cpp : Added ui::ws::realTimeReport(). --- cwUi.cpp | 8 ++++++++ cwUi.h | 3 +++ 2 files changed, 11 insertions(+) diff --git a/cwUi.cpp b/cwUi.cpp index 5792db7..62427c4 100644 --- a/cwUi.cpp +++ b/cwUi.cpp @@ -2210,6 +2210,7 @@ void cw::ui::realTimeReport( handle_t h ) { ui_t* p = _handleToPtr(h); printf("UI msg count: recv:%i send:%i\n",p->recvMsgN,p->sentMsgN); + } @@ -2498,6 +2499,12 @@ cw::ui::handle_t cw::ui::ws::uiHandle( handle_t h ) return p->uiH; } +void cw::ui::ws::realTimeReport( handle_t h ) +{ + ui_ws_t* p = _handleToPtr(h); + report(p->wsH); + realTimeReport(p->uiH); +} namespace cw @@ -2668,3 +2675,4 @@ cw::ui::handle_t cw::ui::srv::uiHandle( handle_t h ) ui_ws_srv_t* p = _handleToPtr(h); return ws::uiHandle(p->wsUiH); } + diff --git a/cwUi.h b/cwUi.h index 7bbf535..e4077e4 100644 --- a/cwUi.h +++ b/cwUi.h @@ -236,6 +236,9 @@ namespace cw websock::handle_t websockHandle( handle_t h ); ui::handle_t uiHandle( handle_t h ); + + void realTimeReport( handle_t h ); + } namespace srv