http://bugs.winehq.org/show_bug.cgi?id=33798
--- Comment #7 from Maxime S. MaximeSedDev@gmail.com 2013-06-17 04:28:01 CDT --- (In reply to comment #6)
OK, the example runs now. I was linking to the wrong library...
Let me see if I get this right. The example "as is" must work in both windows and wine, that is working for me.
Then I changed the bind address on the receive program to a specific interface address, it works in windows. In kernel <= 3.2 I get an interface bind error.
In kernel 3.10 it works in wine. But I'm only using a single computer to test, maybe in your scenario you have 2 or more computers.
(In reply to comment #6)
OK, the example runs now. I was linking to the wrong library...
Let me see if I get this right. The example "as is" must work in both windows and wine, that is working for me.
Then I changed the bind address on the receive program to a specific interface address, it works in windows. In kernel <= 3.2 I get an interface bind error.
In kernel 3.10 it works in wine. But I'm only using a single computer to test, maybe in your scenario you have 2 or more computers.
Thank you for the support ! I'm surprised it works for you. I'm using < 3.5 kernels. It should work on multiple computer but it doesn't even work on a single computer for me. The bug 33753 is interesting too but it doesn't work with the 1.4 for me and it should be a regression since the 1.5.15.
To be sure we are using the same thing. You should have replaced in the listener: this: local_sin.sin_addr.s_addr = htonl (INADDR_ANY); with: local_sin.sin_addr.s_addr = inet_addr(YOUR_INTERFACE_IP);
And in the sender: this: source_sin.sin_addr.s_addr = htonl (INADDR_ANY); with: source_sin.sin_addr.s_addr = inet_addr(YOUR_INTERFACE_IP);
I will make some test with the 3.10 and the wine 1.6-rc2 (I just tested it quickly on another pc) as soon as possible.