Skip to content

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

Name
~UnixSocketServer() override
virtual std::stringtoString() const override
Human-readable short string (class@ptr by default).
virtual Result< void >listen() override
Starts listening for connections.
virtual boolisListening() 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_tclassHash() const override
Stable type hash for cross-language identification.
virtual ConnectionHandleaccept() override
Accepts a connection (blocks until client connects).
UnixSocketServer(ConnectionManager * connMgr, std::string socketPath)
UnixSocketServer(ConnectionManager * connMgr, std::string socketPath, LocalServerConfig config)

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
structHandleCore
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.
booltryRetain() const
Attempts to retain only if the object is still alive.
voidretain() const
Increments the reference count.
voidrelease() const
Decrements the reference count and deletes when it reaches zero.
uint32_trefCount() const
Current reference count (approximate under contention).
EntropyObject &operator=(const EntropyObject & ) =delete
EntropyObject &operator=(EntropyObject && ) =delete
boolhasHandle() const
template <class OwnerT >
OwnerT *
handleOwnerAs() const
Returns the stamped owner pointer cast to the requested type.
const void *handleOwner() const
uint32_thandleIndex() const
uint64_thandleId() const
uint32_thandleGeneration() const
WeakControlBlock *getWeakControlBlock() const
Lazily retrieves or creates the weak control block.
virtual std::stringdescription() const
Long-form description; defaults to toString().
virtual std::stringdebugString() 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
structHandleAccess
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.

~UnixSocketServer() override
virtual std::string toString() const override

Human-readable short string (class@ptr by default).

Reimplements: EntropyEngine::Core::EntropyObject::toString

virtual Result< void > listen() override

Starts listening for connections.

Return: Result indicating success or failure

Reimplements: EntropyEngine::Networking::LocalServer::listen

inline virtual bool isListening() const override

Checks if server is currently listening.

Return: true if listening for connections

Reimplements: EntropyEngine::Networking::LocalServer::isListening

virtual Result< void > close() override

Stops listening and closes the server.

Return: Result indicating success or failure

Reimplements: EntropyEngine::Networking::LocalServer::close

inline virtual const char * className() const override

Runtime class name for diagnostics and reflection.

Reimplements: EntropyEngine::Core::EntropyObject::className

virtual uint64_t classHash() const override

Stable type hash for cross-language identification.

Reimplements: EntropyEngine::Core::EntropyObject::classHash

virtual ConnectionHandle accept() override

Accepts a connection (blocks until client connects).

Return: ConnectionHandle for the accepted connection, or invalid handle on error

Reimplements: EntropyEngine::Networking::LocalServer::accept

UnixSocketServer(
ConnectionManager * connMgr,
std::string socketPath
)
UnixSocketServer(
ConnectionManager * connMgr,
std::string socketPath,
LocalServerConfig config
)

Updated on 2026-01-26 at 17:14:35 -0500