WineLib and Unix Domain Sockets.

Questions about Wine on Linux
Locked
bga
Newbie
Newbie
Posts: 1
Joined: Thu Dec 19, 2019 12:31 pm

WineLib and Unix Domain Sockets.

Post by bga »

Hello.

I am not 100% sure this forum is appropriate for WineLib questions. If it is not, please let me know (even better if you can point me to the right place).

I have this Windows DLL that I want to be able to wrap in a WineLib program so to minimize the surface of the Windows part on non-Windows platforms. The general idea is to generate an executable that will be started by another program (Linux) and use some sort of IPC for communication between the WineLib one and the Linux one.

Conceptually it looks like this should work, but I hit an issue rigth away. It appears I can not use Unix Domain Sockets to do the IPC (which is what I was considering at first). In more concrete details, in the WineLib C program, this:

socket(AF_UNIX, SOCK_DGRAM, 0)

Will return an invalid argument error.

As i undesratnd it, WineLib was supposed to allow most of the Linux stuff to be used from the program. Is that the case that unix domain sockets can not really be used? Maybe I am just missing something?

I am using winegcc with no special parameters to compile the program.

Thanks in advance.
Locked