Can I call from ruby ​​to mono?

I work for a medium-sized business that integrates a small number of systems into a single web application written in Ruby on Rails and running on Redhat. One of the functions of the application is communication with remote equipment. Some equipment with which I can communicate directly, some of them must rely on equipment that reports to the database.

Recently, I was offered a “private API” from one of our equipment manufacturers to contact some of our remote transmissions that I currently have no connection with. Of course, I was interested in this opportunity. The trick is that it is provided as a DLL.NET 2.0. This is the amount of information I have about the interface.

Assuming I can load a dll from mono (which I don’t know anything about right now), is it even possible to call mono from ruby? Am I really in a world of pain, if I can and what to do?

(Getting this work will save so much pain in other areas that I am ready to consider when creating system calls, if I should, considering that the performance was not terrible)

+3
source share
3 answers

I don’t think you can call something that is not a simple standalone library that provides a C-calling convention interface.

, , (, DLL.NET ), , .NET/mono, DLL, DLL, , stdin ( , ). , "" , , .

+3

- IronRuby , , .NET- ( Ruby). ( .NET), RPC, , - IPC.

, COM- Mono: Ruby DLL.NET?

+2

, , , "DLL API" . DLL? , - TCP ( , , ), DLL Ruby.

0

Source: https://habr.com/ru/post/1726114/


All Articles