EntropyEngine::Networking::UnixSocketServer
EntropyEngine::Networking::UnixSocketServer
Section titled “EntropyEngine::Networking::UnixSocketServer”Unix domain socket server implementation. More…
#include <UnixSocketServer.h>
Inherits from EntropyEngine::Networking::LocalServer, EntropyEngine::Core::EntropyObject
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| ~UnixSocketServer() override | |
| virtual std::string | toString() const override Human-readable short string (class@ptr by default). |
| virtual Result< void > | listen() override Starts listening for connections. |
| virtual bool | isListening() const override Checks if server is currently listening. |
| virtual Result< void > | close() override Stops listening and closes the server. |
| virtual const char * | className() const override Runtime class name for diagnostics and reflection. |
| virtual uint64_t | classHash() const override Stable type hash for cross-language identification. |
| virtual ConnectionHandle | accept() override Accepts a connection (blocks until client connects). |
| UnixSocketServer(ConnectionManager * connMgr, std::string socketPath) | |
| UnixSocketServer(ConnectionManager * connMgr, std::string socketPath, LocalServerConfig config) |
Additional inherited members
Section titled “Additional inherited members”Public Functions inherited from EntropyEngine::Networking::LocalServer
| Name | |
|---|---|
| virtual | ~LocalServer() =default |
Protected Functions inherited from EntropyEngine::Networking::LocalServer
| Name | |
|---|---|
| LocalServer() =default |
Protected Classes inherited from EntropyEngine::Core::EntropyObject
| Name | |
|---|---|
| struct | HandleCore Optional handle identity stamped by an owner/registry. |
Public Functions inherited from EntropyEngine::Core::EntropyObject
| Name | |
|---|---|
| virtual | ~EntropyObject() =default |
| virtual const TypeSystem::TypeInfo * | typeInfo() const Optional richer type information; may be null. |
| bool | tryRetain() const Attempts to retain only if the object is still alive. |
| void | retain() const Increments the reference count. |
| void | release() const Decrements the reference count and deletes when it reaches zero. |
| uint32_t | refCount() const Current reference count (approximate under contention). |
| EntropyObject & | operator=(const EntropyObject & ) =delete |
| EntropyObject & | operator=(EntropyObject && ) =delete |
| bool | hasHandle() const |
| template <class OwnerT > OwnerT * | handleOwnerAs() const Returns the stamped owner pointer cast to the requested type. |
| const void * | handleOwner() const |
| uint32_t | handleIndex() const |
| uint64_t | handleId() const |
| uint32_t | handleGeneration() const |
| WeakControlBlock * | getWeakControlBlock() const Lazily retrieves or creates the weak control block. |
| virtual std::string | description() const Long-form description; defaults to toString(). |
| virtual std::string | debugString() const Debug-oriented string including refcount and handle when present. |
| EntropyObject() =default | |
| EntropyObject(EntropyObject && ) =delete | |
| EntropyObject(const EntropyObject & ) =delete |
Protected Functions inherited from EntropyEngine::Core::EntropyObject
| Name | |
|---|---|
| void | _setHandleIdentity(void * owner, uint32_t index, uint32_t generation) |
| void | _clearHandleIdentity() |
Protected Attributes inherited from EntropyEngine::Core::EntropyObject
| Name | |
|---|---|
| std::atomic< WeakControlBlock * > | _weakBlock Lazily allocated control block for weak refs. |
| std::atomic< uint32_t > | _refCount Thread-safe retain/release counter. |
| struct EntropyEngine::Core::EntropyObject::HandleCore | _handle |
Friends inherited from EntropyEngine::Core::EntropyObject
| Name | |
|---|---|
| struct | HandleAccess |
Detailed Description
Section titled “Detailed Description”class EntropyEngine::Networking::UnixSocketServer;Unix domain socket server implementation.
Provides server-side Unix socket functionality for Linux/macOS. Handles socket creation, binding, listening, and accepting connections.
Public Functions Documentation
Section titled “Public Functions Documentation”function ~UnixSocketServer
Section titled “function ~UnixSocketServer”~UnixSocketServer() overridefunction toString
Section titled “function toString”virtual std::string toString() const overrideHuman-readable short string (class@ptr by default).
Reimplements: EntropyEngine::Core::EntropyObject::toString
function listen
Section titled “function listen”virtual Result< void > listen() overrideStarts listening for connections.
Return: Result indicating success or failure
Reimplements: EntropyEngine::Networking::LocalServer::listen
function isListening
Section titled “function isListening”inline virtual bool isListening() const overrideChecks if server is currently listening.
Return: true if listening for connections
Reimplements: EntropyEngine::Networking::LocalServer::isListening
function close
Section titled “function close”virtual Result< void > close() overrideStops listening and closes the server.
Return: Result indicating success or failure
Reimplements: EntropyEngine::Networking::LocalServer::close
function className
Section titled “function className”inline virtual const char * className() const overrideRuntime class name for diagnostics and reflection.
Reimplements: EntropyEngine::Core::EntropyObject::className
function classHash
Section titled “function classHash”virtual uint64_t classHash() const overrideStable type hash for cross-language identification.
Reimplements: EntropyEngine::Core::EntropyObject::classHash
function accept
Section titled “function accept”virtual ConnectionHandle accept() overrideAccepts a connection (blocks until client connects).
Return: ConnectionHandle for the accepted connection, or invalid handle on error
Reimplements: EntropyEngine::Networking::LocalServer::accept
function UnixSocketServer
Section titled “function UnixSocketServer”UnixSocketServer( ConnectionManager * connMgr, std::string socketPath)function UnixSocketServer
Section titled “function UnixSocketServer”UnixSocketServer( ConnectionManager * connMgr, std::string socketPath, LocalServerConfig config)Updated on 2026-01-26 at 17:14:35 -0500