TraceMaker
C++ API of the engine
Loading...
Searching...
No Matches
tmk::session Namespace Reference

Classes

struct  SessionOptions
class  Session

Functions

void run_mcp (Session &s, std::istream &in, std::ostream &out)
 Return when the input ends. Never throw for a bad request: it is answered.
void run_jsonl (Session &s, std::istream &in, std::ostream &out)

Variables

constexpr std::size_t kMaxRequestBytes = 1 << 20
 a line longer than this is refused (the rest of the line is skipped)

Function Documentation

◆ run_jsonl()

void tmk::session::run_jsonl ( Session & s,
std::istream & in,
std::ostream & out )

◆ run_mcp()

void tmk::session::run_mcp ( Session & s,
std::istream & in,
std::ostream & out )

Return when the input ends. Never throw for a bad request: it is answered.

Variable Documentation

◆ kMaxRequestBytes

std::size_t tmk::session::kMaxRequestBytes = 1 << 20
inlineconstexpr

a line longer than this is refused (the rest of the line is skipped)

Definition at line 15 of file transport.hpp.