cxxmcp 1.1.6
C++ MCP SDK
Loading...
Searching...
No Matches
peer.hpp File Reference

Server-side handle for sending requests and notifications to a client peer. More...

#include <atomic>
#include <cstdint>
#include <exception>
#include <memory>
#include <optional>
#include <string>
#include <string_view>
#include <type_traits>
#include <utility>
#include <vector>
#include "cxxmcp/core/result.hpp"
#include "cxxmcp/error.hpp"
#include "cxxmcp/protocol/elicitation.hpp"
#include "cxxmcp/protocol/roots.hpp"
#include "cxxmcp/protocol/sampling.hpp"
#include "cxxmcp/protocol/schema.hpp"
#include "cxxmcp/protocol/serialization.hpp"
#include "cxxmcp/protocol/task.hpp"
#include "cxxmcp/request.hpp"
#include "cxxmcp/server/transport.hpp"

Go to the source code of this file.

Classes

class  mcp::server::ClientPeer
 Non-owning handle for the client associated with a server session. More...
 

Functions

ClientPeer mcp::server::client_peer (const SessionContext &context) noexcept
 Create a ClientPeer handle from a session context.
 
SessionClient mcp::server::session_client (const SessionContext &context) noexcept
 Create a SessionClient handle from a session context.
 

Detailed Description

Server-side handle for sending requests and notifications to a client peer.

Function Documentation

◆ client_peer()

ClientPeer mcp::server::client_peer ( const SessionContext context)
inlinenoexcept

Create a ClientPeer handle from a session context.

Parameters
contextSession context whose transport pointer will be borrowed.
Returns
A non-owning ClientPeer.