ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
mcp_server Struct Reference

The useful part of mcp job is in server, message, response, request: together they describe what is pending, who owns it, and how much data is valid. Keep the object with its parent operation and use the parent cleanup path. More...

#include <src/mcp-server/mcp.h>

Data Fields

mcp_policy_t policy
mcp_job_t * jobs
mutex_t output_mutex
http_server_t * shared_http
atomic_t stopping
bool initialized

Detailed Description

The useful part of mcp job is in server, message, response, request: together they describe what is pending, who owns it, and how much data is valid. Keep the object with its parent operation and use the parent cleanup path.

mcp server keeps the values that move through the subsystem: policy, jobs, output_mutex, shared_http. Some members are pointers into caller- or subsystem-owned memory, so lifetime follows the API that populated them rather than the struct copy itself.

Definition at line 86 of file mcp.h.

Field Documentation

◆ initialized

bool mcp_server::initialized

Definition at line 92 of file mcp.h.

Referenced by mcp_dispatch().

◆ jobs

mcp_job_t* mcp_server::jobs

Definition at line 88 of file mcp.h.

Referenced by mcp_dispatch(), mcp_http_run(), mcp_jobs_reap(), mcp_server_main(), and mcp_stdio_run().

◆ output_mutex

mutex_t mcp_server::output_mutex

Definition at line 89 of file mcp.h.

Referenced by mcp_server_main(), and mcp_stdio_send().

◆ policy

mcp_policy_t mcp_server::policy

Definition at line 87 of file mcp.h.

Referenced by mcp_dispatch(), mcp_http_run(), mcp_jobs_reap(), mcp_server_main(), and mcp_stdio_run().

◆ shared_http

http_server_t* mcp_server::shared_http

Definition at line 90 of file mcp.h.

Referenced by mcp_http_run(), and mcp_http_wake().

◆ stopping

atomic_t mcp_server::stopping

Definition at line 91 of file mcp.h.

Referenced by mcp_http_run(), mcp_stdio_run(), and mcp_stdio_send().


The documentation for this struct was generated from the following file: