cwUi.h/cpp : Added ui::ws::realTimeReport().

This commit is contained in:
kevin 2024-03-25 14:29:58 -04:00
parent c9281603de
commit 55aed815e1
2 changed files with 11 additions and 0 deletions

View File

@ -2210,6 +2210,7 @@ void cw::ui::realTimeReport( handle_t h )
{ {
ui_t* p = _handleToPtr(h); ui_t* p = _handleToPtr(h);
printf("UI msg count: recv:%i send:%i\n",p->recvMsgN,p->sentMsgN); 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; 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 namespace cw
@ -2668,3 +2675,4 @@ cw::ui::handle_t cw::ui::srv::uiHandle( handle_t h )
ui_ws_srv_t* p = _handleToPtr(h); ui_ws_srv_t* p = _handleToPtr(h);
return ws::uiHandle(p->wsUiH); return ws::uiHandle(p->wsUiH);
} }

3
cwUi.h
View File

@ -236,6 +236,9 @@ namespace cw
websock::handle_t websockHandle( handle_t h ); websock::handle_t websockHandle( handle_t h );
ui::handle_t uiHandle( handle_t h ); ui::handle_t uiHandle( handle_t h );
void realTimeReport( handle_t h );
} }
namespace srv namespace srv