From 88e7960d21865d48f68b2463515dedde66cd9ae8 Mon Sep 17 00:00:00 2001 From: dormando Date: Fri, 1 Apr 2022 18:32:24 -0700 Subject: proxy: mcp.log_req* API interface Lua level API for logging full context of a request/response. Provides log_req() for simple logging and log_reqsample() for conditional logging. --- proxy.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'proxy.h') diff --git a/proxy.h b/proxy.h index 86b4aa9..7abec66 100644 --- a/proxy.h +++ b/proxy.h @@ -371,6 +371,8 @@ typedef struct { int bread; // amount of bytes read into value so far. char cmd[RESP_CMD_MAX+1]; // until we can reverse CMD_*'s to strings directly. enum mcp_resp_mode mode; // reply mode (for noreply fixing) + char be_name[MAX_NAMELEN+1]; + char be_port[MAX_PORTLEN+1]; } mcp_resp_t; // re-cast an io_pending_t into this more descriptive structure. -- cgit v1.2.1