- u_async.c: process immediate_queue BEFORE epoll_wait in uasync_poll - stcp_link.c: defensive NULL etcp_conn/etcp_link in stcp_link_close - utun_instance.c: move stcp_server_list_destroy_all to Phase J (before ETCP), add deferred drain in both Phase J and L - stcp.h/c: STCP_HS_ENC_CLIENT 6→38, STCP_HS_ENC_SERVER 7→39, exchange ed25519_pubkey in both handshake directions - etcp_connections.c: copy peer_ed25519 from STCP to ETCP_CONN in etcp_link_enter_ready_tcp; guard link->etcp in tcp_link_close_cb - chat_sync.c: fix lk->conn NULL dereference for TCP links - test_stcp.c: update stcp_server_create/stcp_client_connect callsites - tools/chat_tcp_test: change transport udp→tcp
45 lines
1.0 KiB
C
45 lines
1.0 KiB
C
/*
|
|
* etcpmon_graph.h - ETCP Monitor Graph Definitions
|
|
*/
|
|
|
|
#ifndef ETCPMON_GRAPH_H
|
|
#define ETCPMON_GRAPH_H
|
|
|
|
#ifndef WIN32_LEAN_AND_MEAN
|
|
#define WIN32_LEAN_AND_MEAN
|
|
#endif
|
|
|
|
#include <windows.h>
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Graph constants */
|
|
#define GRAPH_WIDTH 860
|
|
#define GRAPH_HEIGHT 150
|
|
#define CHANNEL_LIST_HEIGHT 80
|
|
#define GRAPH_METRICS_COUNT 8
|
|
#define GRAPH_HISTORY_SIZE 860
|
|
|
|
/* Forward declarations */
|
|
struct etcpmon_app;
|
|
struct metrics_history;
|
|
|
|
/* Graph colors for each metric */
|
|
extern const COLORREF graph_colors[GRAPH_METRICS_COUNT];
|
|
extern const char* graph_metric_names[GRAPH_METRICS_COUNT];
|
|
|
|
/* Graph functions */
|
|
LRESULT CALLBACK GraphWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
|
|
void DrawGraph(HDC hdc, RECT* rc, struct etcpmon_app* app);
|
|
void GetSelectedChannels(struct etcpmon_app* app, int* selected, int* count);
|
|
void UpdateChannelValues(struct etcpmon_app* app, int cursor_sample);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* ETCPMON_GRAPH_H */
|