ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
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 80 of file mcp.h.

Field Documentation

◆ initialized

bool mcp_server::initialized

Definition at line 86 of file mcp.h.

Referenced by mcp_dispatch().

◆ jobs

mcp_job_t* mcp_server::jobs

Definition at line 82 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 83 of file mcp.h.

Referenced by mcp_server_main(), and mcp_stdio_send().

◆ policy

mcp_policy_t mcp_server::policy

Definition at line 81 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 84 of file mcp.h.

Referenced by mcp_http_run(), and mcp_http_wake().

◆ stopping

atomic_t mcp_server::stopping

Definition at line 85 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: