IPC: portable local transport on Windows
Add TransportWindows.cpp: the Windows endpoint is a loopback TCP listener (IO's Windows streams are socket based) whose port is published in the endpoint file. Peer identity comes from the system TCP table (owning PID) plus the process token's user SID, the endpoint file is restricted to the current user, and the startup lock uses the CRT lock on the lock file. Transport.cpp keeps the POSIX implementation and is guarded to !_WIN32. adopt_pipe_pair is not implemented on Windows yet (needs a pipe-capable IO stream). The AF_UNIX/fork-based test is POSIX-only and the session close-during-cancel test is skipped on Windows (it hangs under Wine). Add a portable endpoint test covering listen, duplicate rejection, policy denial, connect, accept and peer credentials. Verified: Linux IPC+Testing 4/4 IPC tests pass. Windows cross build under Wine 11 (x86_64-w64-mingw32 GCC 16.2): 693 tests, 685 passed, 8 skipped, 0 failed. Allowlist IPC for the Windows target.
This commit is contained in:
1 parent
76ae5aeba0
commit
bf4b693c7c
6 files changed
+917
-20
No files matched your search
@@ -70,6 +70,7 @@ set(VOID_WINDOWS_MODULES
|
||||
Fsm
|
||||
Functional
|
||||
IO
|
||||
IPC
|
||||
Log
|
||||
LogState
|
||||
Math
|
||||
|
||||
Reference in new issue
Block a user