Nov. 8, 2023
8:07 p.m.
On Sun Nov 5 16:46:45 2023 +0000, Zebediah Figura wrote: > > Also I checked about FIFO, and windows doesn't have an api that would > match with unix implementation and that could be used for communication. > (Source: https://github.com/python/cpython/issues/103510) > You can't create a FIFO from PE code, but you should be able to create > one from unix code and then just do normal ReadFile / WriteFile from PE code. After review I see the following: - unixlib is not easy to use outside of wine itself - FIFO is not better as it require unixlib - socket is a big no no as sockets can't filter by user id AF_UNIX is easy to use, and filter by user id by default because it's a file. I already tried to play with the wine toolchain in the past. And I was unable to make to make it load required stuff to make something useful. DXVK doesn't use wine toolchain, and wineasio doesn't use unixlib. As the old way `something.dll.so` will no longer work properly with `wow64`, and unixlib being too hard to use outside of the wine codebase, `AF_UNIX` will be the **only** safe way to do PE unix IPC outside of wine codebase. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/2786#note_51557