I have a .Net console application(c++) that share with an asmx service (.Net c#) information by Windows file memory-mapping. Asmx service application run under IIs and share with World the state of console application by reading windows file memory-map .
All this stuffs works on Windows, now I need to porting console application on Linux. I can run it with wine, works fine. But how can I read file memory-map ? It's possible to run IIS on Wine and read this memory-map ?
I can't porting code of console application on linux, but I could rewrite web services and running on native linux with gsoap or tomcat, but in this case I have the problem that I need to read the value of variables that console application write in memory-map .
porting a win console application + asmx web service
Re: porting a win console application + asmx web service
tulkas85 it is not possible to run IIS under wine. Reality is IIS is not a independently licensed product. Even attempting to run apache under wine you run into issues.
http://www.mono-project.com/docs/web/aspnet/
If you are lucky most of your Asmx service application will work with mono other than the memory link up.
memory-map is most likely going to require a small wrapper application written in windows/wine to convert this to a linux named pipe. Sorry I cannot remember if the wrapper will have to be a exe.so or a .exe. Please note exe.so is a wine particular program that can do things that a Window native program cannot.
pipelight https://launchpad.net/pipelight and https://gist.github.com/coderofsalvation/3053260 is using Linux named pipes with wine to talk from inside wine to outside and back.
tulkas85 this should at least give you enough that you can get started.
http://www.mono-project.com/docs/web/aspnet/
If you are lucky most of your Asmx service application will work with mono other than the memory link up.
memory-map is most likely going to require a small wrapper application written in windows/wine to convert this to a linux named pipe. Sorry I cannot remember if the wrapper will have to be a exe.so or a .exe. Please note exe.so is a wine particular program that can do things that a Window native program cannot.
pipelight https://launchpad.net/pipelight and https://gist.github.com/coderofsalvation/3053260 is using Linux named pipes with wine to talk from inside wine to outside and back.
tulkas85 this should at least give you enough that you can get started.
Re: porting a win console application + asmx web service
thank you, probably I need something like pipelight but for console application.
Perhaps is more simple to put under wine another win application that read memory-map, and communicate with a linux or java application through socket. If I can use Asmx service application under tomcat or mono, then it could be directly a client and send request by socket at this new wrapper application.
It's a valid scenario on wine ?
Perhaps is more simple to put under wine another win application that read memory-map, and communicate with a linux or java application through socket. If I can use Asmx service application under tomcat or mono, then it could be directly a client and send request by socket at this new wrapper application.
It's a valid scenario on wine ?
Re: porting a win console application + asmx web service
This is fairly much on a equal path to make something that works.Perhaps is more simple to put under wine another win application that read memory-map, and communicate with a linux or java application through socket. If I can use Asmx service application under tomcat or mono, then it could be directly a client and send request by socket at this new wrapper application.
Remember Linux and Windows applications inside wine are not always using the same encoding on stuff.