Skip to content

Sockets: add a ServerSocket factory alias - #1878

Merged
Mysticial merged 1 commit into
mainfrom
add-server-socket-alias
Nov 10, 2026
Merged

Mysticial merged 1 commit into
mainfrom
add-server-socket-alias

Conversation

@pa-devbot

Copy link
Copy Markdown
Collaborator

Adds Common/Cpp/Sockets/ServerSocket.h, mirroring ClientSocket.h: ServerSocket is ServerSocket_WinSocket on Windows and ServerSocket_POSIX elsewhere. Callers can now use one include instead of picking a platform-specific backend. The Qt backend (ServerSocket_Qt) remains available for callers that want Qt event-loop integration.

Part of the groundwork for the in-app MCP server (see #MCP Server): the HTTP server layer will build on AbstractServerSocket.

First of two stacked PRs; the second adds Common/Cpp/HttpServer/.

Mirror ClientSocket.h: pick ServerSocket_WinSocket on Windows and
ServerSocket_POSIX elsewhere, so callers don't have to include a
platform-specific backend. The Qt backend stays available for callers
that want to integrate with a Qt event loop.
@Mysticial
Mysticial merged commit 93aa64a into main Nov 10, 2026
8 checks passed
@Mysticial
Mysticial deleted the add-server-socket-alias branch November 10, 2026 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants