yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::net Namespace Reference

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< IHttpClientCreateHttpClient ()
 Factory functions for creating network clients.
 
std::unique_ptr< IWebSocketCreateWebSocket ()
 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.
 

Typedef Documentation

◆ Headers

using yaze::net::Headers = std::map<std::string, std::string>

HTTP headers type definition.

Definition at line 16 of file http_client.h.

Enumeration Type Documentation

◆ ConnectionState

enum class yaze::net::ConnectionState
strong

WebSocket connection states.

Enumerator
kDisconnected 
kConnecting 
kConnected 
kReconnecting 
kError 

Definition at line 26 of file websocket_client.h.

◆ WebSocketState

enum class yaze::net::WebSocketState
strong

WebSocket connection states.

Enumerator
kDisconnected 
kConnecting 
kConnected 
kClosing 
kClosed 
kError 

Definition at line 16 of file websocket_interface.h.

Function Documentation

◆ CreateHttpClient()

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
Unique pointer to IHttpClient implementation

Returns:

  • HttpLibClient for native builds
  • EmscriptenHttpClient for WASM builds

Definition at line 14 of file network_factory.cc.

◆ CreateWebSocket()

std::unique_ptr< IWebSocket > yaze::net::CreateWebSocket ( )

Create a WebSocket client for the current platform.

Returns
Unique pointer to IWebSocket implementation

Returns:

  • HttpLibWebSocket (or native WebSocket) for native builds
  • EmscriptenWebSocket for WASM builds

Definition at line 22 of file network_factory.cc.

◆ IsSSLSupported()

bool yaze::net::IsSSLSupported ( )

Check if the current platform supports SSL/TLS.

Returns
true if SSL/TLS is available, false otherwise

Definition at line 30 of file network_factory.cc.

◆ GetNetworkPlatform()

std::string yaze::net::GetNetworkPlatform ( )

Get the platform name for debugging.

Returns
Platform string ("native", "wasm", etc.)

Definition at line 44 of file network_factory.cc.