|
cxxmcp 1.1.6
C++ MCP SDK
|
Running server-side MCP service. More...
#include <service.hpp>
Public Member Functions | |
| RunningService (ServerPeer peer) | |
| RunningService (ServerPeer peer, std::unique_ptr< transport::ServerTransport > transport, server::SessionContext context={}) | |
| RunningService (const RunningService &)=delete | |
| RunningService & | operator= (const RunningService &)=delete |
| RunningService (RunningService &&other) noexcept | |
| RunningService & | operator= (RunningService &&other) noexcept |
| ServerPeer & | peer () noexcept |
| const ServerPeer & | peer () const noexcept |
| void | wait_until_ready () |
| Blocks until the server is ready to accept connections. | |
| 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 |
Running server-side MCP service.
|
inlinenoexcept |
Waits for service shutdown.
Blocks until close() or stop() completes.
|
inline |
Blocks until the server is ready to accept connections.
For HTTP transports, this waits until the listening socket is bound. For other transports, returns immediately.