feat(local): close POSIX/Windows gaps for local stream sockets#252
feat(local): close POSIX/Windows gaps for local stream sockets#252mvandeberg wants to merge 1 commit into
Conversation
mvandeberg
commented
May 19, 2026
- Add Windows make_local_stream_pair() via temp-listener emulation of socketpair(), enabling socket-pair tests on IOCP
- Implement assign_socket() in win_local_stream_service so raw SOCKET handles can be registered with the IOCP port
- Enable local_stream_socket tests on Windows (construction, open, move, connect/accept, read/write, available, release)
- Add portable temp_socket_dir helper using std::filesystem for temp paths across platforms
- Guard local datagram code (SOCK_DGRAM) as POSIX-only at compile time — Windows does not support AF_UNIX SOCK_DGRAM
- Remove dead IOCP datagram implementation files (win_local_dgram_service.hpp, win_local_dgram_socket.hpp)
- Document Windows limitation on local_datagram_socket and local_datagram headers
|
An automated preview of the documentation is available at https://252.corosio.prtest3.cppalliance.org/index.html If more commits are pushed to the pull request, the docs will rebuild at the same URL. 2026-05-20 17:03:28 UTC |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #252 +/- ##
========================================
Coverage 77.76% 77.76%
========================================
Files 96 96
Lines 7264 7264
Branches 1775 1775
========================================
Hits 5649 5649
Misses 1104 1104
Partials 511 511
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
d852a7a to
c25be62
Compare
|
GCOVR code coverage report https://252.corosio.prtest3.cppalliance.org/gcovr/index.html Build time: 2026-05-20 17:11:34 UTC |
- Add Windows make_local_stream_pair() via temp-listener emulation of socketpair(), enabling socket-pair tests on IOCP - Implement assign_socket() in win_local_stream_service so raw SOCKET handles can be registered with the IOCP port - Replace ConnectEx/AcceptEx with blocking connect()/accept() on worker threads for AF_UNIX — the IOCP extension functions are not reliable for AF_UNIX on all Windows versions - Enable local_stream_socket tests on Windows (construction, open, move, connect/accept, read/write, available, release) - Add portable temp_socket_dir helper using std::filesystem for temp paths across platforms - Guard local datagram code (SOCK_DGRAM) as POSIX-only at compile time — Windows does not support AF_UNIX SOCK_DGRAM - Remove dead IOCP datagram implementation files (win_local_dgram_service.hpp, win_local_dgram_socket.hpp) - Document Windows limitation on local_datagram_socket and local_datagram headers
c25be62 to
d57e9f5
Compare