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

A blocking local-socket client for use on a thread of its own, so it keeps working while the main thread is blocked. More...

Public Member Functions

 ThreadClient (const QString &name)
 Connects to name (call on the thread that uses the client).
QJsonObject request (int id, const QString &method, const QJsonObject &params={ }, int timeoutMs=3000)
 Sends a request and waits up to timeoutMs for its response.

Private Attributes

QLocalSocket m_socket
 Connection to the server.

Detailed Description

A blocking local-socket client for use on a thread of its own, so it keeps working while the main thread is blocked.


The documentation for this class was generated from the following file:
  • tests/core/test_threading.cpp