MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
Network.hpp
Go to the documentation of this file.
1#pragma once
2
4struct NetworkService;
5}
6
8
9/**
10 * @brief Initialize Portal::Network
11 * @param service Pointer to the registered NetworkService.
12 * @return true if initialization succeeded.
13 *
14 * Must be called after NetworkSubsystem has started and registered
15 * its NetworkService into BackendRegistry. Sequence mirrors
16 * Portal::Graphics::initialize(backend).
17 *
18 * Initializes, in order:
19 * - NetworkFoundry (endpoint resource authority) [not yet implemented]
20 * - StreamForge (stream lifecycle and schema) [not yet implemented]
21 * - PacketFlow (serialization and dispatch) [not yet implemented]
22 *
23 * Today this is a stub. The function signature and call site are
24 * established so the engine init sequence does not need to change
25 * when the singletons are added.
26 */
27MAYAFLUX_API bool initialize(Registry::Service::NetworkService* service);
28
29/**
30 * @brief Stop active Portal::Network operations.
31 *
32 * Drains any in-flight sends, stops background workers.
33 * Call before shutdown().
34 */
35MAYAFLUX_API void stop();
36
37/**
38 * @brief Shutdown Portal::Network and release all resources.
39 *
40 * Closes all managed endpoints and destroys singletons.
41 * Must be called after stop().
42 */
43MAYAFLUX_API void shutdown();
44
45/**
46 * @brief Return true if Portal::Network has been initialized.
47 */
48MAYAFLUX_API bool is_initialized();
49
50} // namespace MayaFlux::Portal::Network
void initialize()
Definition main.cpp:11
void stop()
Stop active Portal::Network operations.
Definition Network.cpp:36
void shutdown()
Shutdown Portal::Network and release all resources.
Definition Network.cpp:50
bool is_initialized()
Return true if Portal::Network has been initialized.
Definition Network.cpp:66