Namespaces | |
| namespace | anonymous_namespace{rom_version_manager.cc} |
Classes | |
| class | CollaborationService |
| High-level service integrating version management with networking. More... | |
| class | HttpLibClient |
| Native HTTP client implementation using cpp-httplib. More... | |
| class | HttpLibWebSocket |
| Native WebSocket implementation using HTTP fallback. More... | |
| struct | HttpResponse |
| HTTP response structure containing status, body, and headers. More... | |
| class | IHttpClient |
| Abstract interface for HTTP client implementations. More... | |
| class | IWebSocket |
| Abstract interface for WebSocket client implementations. More... | |
| class | ProposalApprovalManager |
| Manages proposal approval workflow for collaborative sessions. More... | |
| struct | RomSnapshot |
| Represents a versioned snapshot of ROM state. More... | |
| class | RomVersionManager |
| Manages ROM versioning, snapshots, and rollback capabilities. More... | |
| struct | SessionInfo |
| Information about the current collaboration session. More... | |
| struct | VersionDiff |
| Represents differences between two ROM versions. More... | |
| class | WebSocketClient |
| WebSocket client for connecting to yaze-server. More... | |
Typedefs | |
| using | Headers = std::map<std::string, std::string> |
| HTTP headers type definition. | |
Enumerations | |
| enum class | ConnectionState { kDisconnected , kConnecting , kConnected , kReconnecting , kError } |
| WebSocket connection states. More... | |
| enum class | WebSocketState { kDisconnected , kConnecting , kConnected , kClosing , kClosed , kError } |
| WebSocket connection states. More... | |
Functions | |
| std::unique_ptr< IHttpClient > | CreateHttpClient () |
| Factory functions for creating network clients. | |
| std::unique_ptr< IWebSocket > | CreateWebSocket () |
| Create a WebSocket client for the current platform. | |
| bool | IsSSLSupported () |
| Check if the current platform supports SSL/TLS. | |
| std::string | GetNetworkPlatform () |
| Get the platform name for debugging. | |
| using yaze::net::Headers = std::map<std::string, std::string> |
HTTP headers type definition.
Definition at line 16 of file http_client.h.
|
strong |
WebSocket connection states.
| Enumerator | |
|---|---|
| kDisconnected | |
| kConnecting | |
| kConnected | |
| kReconnecting | |
| kError | |
Definition at line 26 of file websocket_client.h.
|
strong |
WebSocket connection states.
| Enumerator | |
|---|---|
| kDisconnected | |
| kConnecting | |
| kConnected | |
| kClosing | |
| kClosed | |
| kError | |
Definition at line 16 of file websocket_interface.h.
| std::unique_ptr< IHttpClient > yaze::net::CreateHttpClient | ( | ) |
Factory functions for creating network clients.
These functions return the appropriate implementation based on the build platform (native or WASM). This allows the rest of the codebase to use networking features without worrying about platform differences.
Create an HTTP client for the current platform
Returns:
Definition at line 14 of file network_factory.cc.
| std::unique_ptr< IWebSocket > yaze::net::CreateWebSocket | ( | ) |
Create a WebSocket client for the current platform.
Returns:
Definition at line 22 of file network_factory.cc.
| bool yaze::net::IsSSLSupported | ( | ) |
Check if the current platform supports SSL/TLS.
Definition at line 30 of file network_factory.cc.
| std::string yaze::net::GetNetworkPlatform | ( | ) |
Get the platform name for debugging.
Definition at line 44 of file network_factory.cc.