Boost C++ Libraries

PrevUpHomeNext

Struct server_info

boost::taar::mcp::server_info — Static information the server reports in initialize, plus session options.

Synopsis

// In header: <boost/taar/mcp/endpoint.hpp>


struct server_info {

  // public data members
  std::string name;
  std::string version;
  std::string instructions;
  std::chrono::steady_clock::duration session_idle_timeout;
  std::size_t page_size;  // Items per page for *&zwj;/list methods; 0 returns everything in one page. 
  std::size_t stream_history;  // Events kept per session for Last-Event-ID stream resumption; also bounds how many undelivered events a session queues for a stream that has not been opened yet (oldest dropped first). 
  log_level default_log_level;  // Least severe log() message delivered before the client sets a level. 
  std::chrono::steady_clock::duration stream_keepalive;  // Interval between : keepalive comments on an idle event stream, so a dropped connection is noticed and freed for a reconnect; zero disables. 
  std::chrono::steady_clock::duration request_timeout;  // How long request() (and elicit, create_message, list_roots) waits for the client when no timeout is passed; zero waits forever. 
};

Description

server_info public public data members

  1. std::chrono::steady_clock::duration request_timeout;

    A tool awaits its client while holding the session, so unbounded waits would wedge the session if the client never answers.


PrevUpHomeNext