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
3
namespace
MayaFlux::Registry::Service
{
4
struct
NetworkService;
5
}
6
7
namespace
MayaFlux::Portal::Network
{
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
*/
27
MAYAFLUX_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
*/
35
MAYAFLUX_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
*/
43
MAYAFLUX_API
void
shutdown
();
44
45
/**
46
* @brief Return true if Portal::Network has been initialized.
47
*/
48
MAYAFLUX_API
bool
is_initialized
();
49
50
}
// namespace MayaFlux::Portal::Network
initialize
void initialize()
Definition
main.cpp:11
MayaFlux::Portal::Network::stop
void stop()
Stop active Portal::Network operations.
Definition
Network.cpp:36
MayaFlux::Portal::Network::shutdown
void shutdown()
Shutdown Portal::Network and release all resources.
Definition
Network.cpp:50
MayaFlux::Portal::Network::is_initialized
bool is_initialized()
Return true if Portal::Network has been initialized.
Definition
Network.cpp:66
MayaFlux::Portal::Network
Definition
MessageUtils.cpp:5
MayaFlux::Registry::Service
Definition
VKBuffer.hpp:10
src
MayaFlux
Portal
Network
Network.hpp
Generated by
1.9.8