cxxmcp 1.3.0
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
 
RunningService & operator= (const RunningService &)=delete
 
 RunningService (RunningService &&other) noexcept
 
RunningService & operator= (RunningService &&other) noexcept
 
ClientPeer & peer () noexcept
 
const ClientPeer & peer () const noexcept
 
bool running () const noexcept
 
CancellationToken cancellation_token () const noexcept
 Returns the service cancellation token.
 
core::Result< core::Unit > close () noexcept
 Explicitly closes the running service.
 
core::Result< core::Unit > wait () noexcept
 Waits for service shutdown.
 
core::Result< core::Unit > stop () 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: