|
ForestHub SDK 0.1.0
C++14 LLM SDK for PC and embedded platforms
|
Holds all platform subsystems and provides a factory for HTTP clients. More...
#include <platform.hpp>
Public Member Functions | |
| virtual std::shared_ptr< core::HttpClient > | CreateHttpClient (const HttpClientConfig &config)=0 |
| Create a platform-specific HTTP client. | |
Public Attributes | |
| std::shared_ptr< NetworkInterface > | network |
| Network connectivity subsystem. | |
| std::shared_ptr< ConsoleInterface > | console |
| Console I/O subsystem. | |
| std::shared_ptr< TimeInterface > | time |
| Time and delay subsystem. | |
| std::shared_ptr< CryptoInterface > | crypto |
| TLS/crypto subsystem. | |
| std::shared_ptr< GpioInterface > | gpio |
| GPIO pin I/O subsystem (nullptr if FORESTHUB_ENABLE_GPIO not defined). | |
Holds all platform subsystems and provides a factory for HTTP clients.
Created once at startup via CreatePlatform() and reused for the entire application lifetime.
|
pure virtual |
Create a platform-specific HTTP client.
| config | Connection parameters (host, port, TLS, timeout). |