16 lines
625 B
Text
16 lines
625 B
Text
|
|
// SPDX-License-Identifier: LGPL-3.0-only
|
||
|
|
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||
|
|
|
||
|
|
// The client's transport: a Connection over QUIC to an instance's port on
|
||
|
|
// 127.0.0.1, one stream per request. The library's :Transport describes the
|
||
|
|
// wire.
|
||
|
|
export module Crafter.Debug.Cli:Quic;
|
||
|
|
import std;
|
||
|
|
import Crafter.Debug.Core;
|
||
|
|
import :Client;
|
||
|
|
|
||
|
|
export namespace Crafter::Debug::Cli {
|
||
|
|
// Connects on the first call and keeps the connection for later ones,
|
||
|
|
// reconnecting after one is lost. Needs Crafter.Thread's pool running.
|
||
|
|
std::unique_ptr<Connection> ConnectQuic(const InstanceRecord& instance);
|
||
|
|
}
|