cxxmcp 1.1.6
C++ MCP SDK
Loading...
Searching...
No Matches
mcp::RunningService< RoleClient > Class Reference

Running client-side MCP service. More...

#include <service.hpp>

Public Member Functions

 RunningService (ClientPeer peer)
 
 RunningService (const RunningService &)=delete
 
RunningServiceoperator= (const RunningService &)=delete
 
 RunningService (RunningService &&other) noexcept
 
RunningServiceoperator= (RunningService &&other) noexcept
 
ClientPeerpeer () noexcept
 
const ClientPeerpeer () const noexcept
 
bool running () const noexcept
 
CancellationToken cancellation_token () const noexcept
 Returns the service cancellation token.
 
core::Result< core::Unitclose () noexcept
 Explicitly closes the running service.
 
core::Result< core::Unitwait () noexcept
 Waits for service shutdown.
 
core::Result< core::Unitstop () noexcept
 

Detailed Description

Running client-side MCP service.

Member Function Documentation

◆ wait()

core::Result< core::Unit > mcp::RunningService< RoleClient >::wait ( )
inlinenoexcept

Waits for service shutdown.

Blocks until close() or stop() completes.


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