Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
Sonde::anonymous_namespace{server.cpp} Namespace Reference

Classes

struct  HttpSetting
 Where a SONDE_HTTP value asks to listen: <port>, <host>:<port>, with {instance} in place of the port (designs 0018 and 0019). More...

Functions

bool samplesOffByEnvironment ()
 Whether SONDE_STACK_SAMPLES turns stack samples off.
QHostAddress httpHost (QString hostPart)
 The host part of a SONDE_HTTP value (127.0.0.1, with a warning, if it is invalid).
std::optional< HttpSetting > httpSetting (const QString &value)
 Parses SONDE_HTTP's value, warning about what is wrong with it.

Function Documentation

◆ httpSetting()

std::optional< HttpSetting > Sonde::anonymous_namespace{server.cpp}::httpSetting ( const QString & value)

Parses SONDE_HTTP's value, warning about what is wrong with it.

With {instance}, the port is the first free one of its range from the key's choice on, so two checkouts whose keys pick the same port don't clash (design 0019).