Interaction between C++ and Rails applications
- by FancyDancy
I have two applications: c++ service and a RoR web server (they are both running at same VPS)
I need to "send" some variables (and then do something with them) from each other. For exaple, i'm looking for something like this:
// my C++ sample
void SendMessage(string message) {
SendTo("127.0.0.1", message);
}
void GetMessage(string message) {
if (message == "stop")
SendMessage("success");
}
# Ruby sample
# application_controller.rb
def stop
@m = Messager.new
@m.send("stop")
end
I have never used it before, and i even don't know which technology should i search and learn.