Search code examples
c++ruby-on-railslinuxsendsuse

Best Way to Send Data from C++ program to Rails Server


I have a C++ program that is constantly generating a large amount of data that needs to be sent to a Rails server. Both the program and the server are on the same machine running Suse Linux.

What is the most efficient and simple solution for this?


Solution

  • Sockets are the way to go. If you want some good asynchronous and cross-platform sockets in C++ your best bet, probably, will be boost::asio.