Skip to content

EntropyEngine::Networking::ConnectionConfig

EntropyEngine::Networking::ConnectionConfig

Section titled “EntropyEngine::Networking::ConnectionConfig”

Unified connection configuration. More…

#include <ConnectionTypes.h>

Name
std::optional< std::string >xpcServiceName
macOS XPC service identifier
intxpcReplyTimeoutMs
Default reply timeout for XPC sendWithReply.
size_txpcMaxMessageSize
Max allowed XPC payload size.
WebRTCConfigwebrtcConfig
WebRTC configuration.
ConnectionTypetype
intsocketSendBuf
SO_SNDBUF size in bytes (0 to skip).
intsocketRecvBuf
SO_RCVBUF size in bytes (0 to skip).
SignalingCallbackssignalingCallbacks
Signaling callbacks for SDP/ICE.
intsharedMemoryWaitTimeoutMs
Timeout for wake/wait operations.
size_tsharedMemoryRegionSize
Size of shared memory region (default 4 MiB).
intsharedMemoryConnectTimeoutMs
Timeout for shared memory connection handshake.
intsendPollTimeoutMs
Per-poll timeout during send retries (ms).
intsendMaxPolls
Max poll iterations before timing out a send.
intrecvIdlePollMs
If >= 0, use poll(POLLIN, recvIdlePollMs) instead of fixed sleep when idle.
size_tmaxMessageSize
Max message size for local transports.
std::stringendpoint
Path, pipe name, or signaling server URL.
std::stringdataChannelLabel
Data channel label.
intconnectTimeoutMs
Connect timeout for blocking waits (Unix sockets).
ConnectionBackendbackend
struct EntropyEngine::Networking::ConnectionConfig;

Unified connection configuration.

Supports both simple (Local/Remote) and advanced (explicit backend) use cases. Use the high-level helpers (openLocalConnection, openRemoteConnection) for typical scenarios, or populate this struct for advanced control.

std::optional< std::string > xpcServiceName;

macOS XPC service identifier

int xpcReplyTimeoutMs = 5000;

Default reply timeout for XPC sendWithReply.

size_t xpcMaxMessageSize = DEFAULT_XPC_MAX_MESSAGE_SIZE;

Max allowed XPC payload size.

WebRTCConfig webrtcConfig;

WebRTC configuration.

ConnectionType type = ConnectionType::Local;
int socketSendBuf = 0;

SO_SNDBUF size in bytes (0 to skip).

int socketRecvBuf = 0;

SO_RCVBUF size in bytes (0 to skip).

SignalingCallbacks signalingCallbacks;

Signaling callbacks for SDP/ICE.

int sharedMemoryWaitTimeoutMs = 100;

Timeout for wake/wait operations.

size_t sharedMemoryRegionSize =
DEFAULT_SHARED_MEMORY_REGION_SIZE;

Size of shared memory region (default 4 MiB).

int sharedMemoryConnectTimeoutMs = 5000;

Timeout for shared memory connection handshake.

int sendPollTimeoutMs = 1000;

Per-poll timeout during send retries (ms).

int sendMaxPolls = 100;

Max poll iterations before timing out a send.

int recvIdlePollMs = -1;

If >= 0, use poll(POLLIN, recvIdlePollMs) instead of fixed sleep when idle.

size_t maxMessageSize = DEFAULT_MAX_MESSAGE_SIZE;

Max message size for local transports.

std::string endpoint;

Path, pipe name, or signaling server URL.

std::string dataChannelLabel = "entropy-data";

Data channel label.

int connectTimeoutMs = 5000;

Connect timeout for blocking waits (Unix sockets).

ConnectionBackend backend = ConnectionBackend::Auto;

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