EntropyEngine::Networking::ConnectionManager::ConnectionSlot
EntropyEngine::Networking::ConnectionManager::ConnectionSlot
Section titled “EntropyEngine::Networking::ConnectionManager::ConnectionSlot”Internal storage for a connection slot.
Public Attributes
Section titled “Public Attributes”| Name | |
|---|---|
| std::shared_ptr< std::function< void(ConnectionState)> > | userStateCb User state callback. |
| std::shared_ptr< std::function< void(const std::vector< uint8_t > &)> > | userMessageCb User message callback. |
| ConnectionType | type Connection type (Local or Remote). |
| std::atomic< ConnectionState > | state Current connection state (query source). |
| std::mutex | pendingMsgMutex Protects pendingMessages queue. |
| std::vector< std::vector< uint8_t > > | pendingMessages Messages received before callback was registered. |
| std::atomic< uint32_t > | nextFree Next free slot index (free list). |
| std::mutex | mutex Per-slot mutex for connection operations. |
| std::atomic< ConnectionState > | lastPublishedState Last state sent to metrics (dedup tracking). |
| std::atomic< uint32_t > | generation Generation counter for handle validation. |
| std::unique_ptr< NetworkConnection > | connection Backend implementation (Unix/WebRTC/XPC). |
Public Attributes Documentation
Section titled “Public Attributes Documentation”variable userStateCb
Section titled “variable userStateCb”std::shared_ptr< std::function< void(ConnectionState)> > userStateCb;User state callback.
variable userMessageCb
Section titled “variable userMessageCb”std::shared_ptr< std::function< void(const std::vector< uint8_t > &)> > userMessageCb;User message callback.
variable type
Section titled “variable type”ConnectionType type;Connection type (Local or Remote).
variable state
Section titled “variable state”std::atomic< ConnectionState > state {ConnectionState::Disconnected};Current connection state (query source).
variable pendingMsgMutex
Section titled “variable pendingMsgMutex”std::mutex pendingMsgMutex;Protects pendingMessages queue.
variable pendingMessages
Section titled “variable pendingMessages”std::vector< std::vector< uint8_t > > pendingMessages;Messages received before callback was registered.
variable nextFree
Section titled “variable nextFree”std::atomic< uint32_t > nextFree {INVALID_INDEX};Next free slot index (free list).
variable mutex
Section titled “variable mutex”std::mutex mutex;Per-slot mutex for connection operations.
variable lastPublishedState
Section titled “variable lastPublishedState”std::atomic< ConnectionState > lastPublishedState { ConnectionState::Disconnected};Last state sent to metrics (dedup tracking).
variable generation
Section titled “variable generation”std::atomic< uint32_t > generation {1};Generation counter for handle validation.
variable connection
Section titled “variable connection”std::unique_ptr< NetworkConnection > connection;Backend implementation (Unix/WebRTC/XPC).
Updated on 2026-01-26 at 17:14:35 -0500