What library can I use to do simple, lightweight message passing?

Posted by Mike on Stack Overflow See other posts from Stack Overflow or by Mike
Published on 2010-04-10T20:40:16Z Indexed on 2010/04/10 20:43 UTC
Read the original article Hit count: 231

I will be starting a project which requires communication between distributed nodes(the project is in C++). I need a lightweight message passing library to pass very simple messages(basically just strings of text) between nodes. The library must have the following characteristics:

  1. No external setup required. I need to be able to get everything up-and-running in my code - I don't want to require the user to install any packages or edit any configuration files(other than a list of IP addresses and ports to connect to).

  2. The underlying protocol which the library uses must be TCP(or if it is UDP, the library must guarantee the eventual receipt of the message).

  3. The library must be able to send and receive arbitrarily large strings(think up to 3GB+).

The library needn't support any security mechanisms, fault tolerance, or encryption - I just need it to be fast, simple, and easy to use. I've considered MPI, but concluded it would require too much setup on the user's machine for my project.

What library would you recommend for such a project? I would roll my own, but due to time constraints, I don't think that will be feasible.

© Stack Overflow or respective owner

Related posts about c++

Related posts about message-passing

  • UI message passing programming paradigm

    as seen on Programmers - Search for 'Programmers'
    I recently (about two months ago) read an article that explained some user interface paradigm that I can't remember the name of and I also can't find the article anymore. The paradigm allows for decoupling the user interface and backend through message passing (via some queueing implementation).… >>> More

  • what is message passing in OO?

    as seen on Programmers - Search for 'Programmers'
    I've been studying OO programming, primarily in C++, C# and Java. I thought I had a good grasp on it with my understanding of encapsulation, inheritance and polymorphism (as well as reading a lot of questions on this site). One thing that seems to popup up here and there is the concept of "message… >>> More

  • Message Passing Interface (MPI)

    as seen on Daniel Moth - Search for 'Daniel Moth'
    So you have installed your cluster and you are done with introductory material on Windows HPC. Now you want to develop an application with the most common programming model: Message Passing Interface.The MPI programming model is a standard with implementations from many vendors. For newbies (like… >>> More

  • Chrome extension - Message Passing

    as seen on Stack Overflow - Search for 'Stack Overflow'
    Hey there. I'm trying to get the info that is set on the Options Page to alter the behavior of my extension. Basically, if a checkbox on OptionsPage is set to true, the extension runs, otherwise it doesn't. I'm returning true on the background.html for testing purposes, but still, it doesn't work… >>> More

  • Java Thread Message Passing

    as seen on Stack Overflow - Search for 'Stack Overflow'
    I'm writing an Android app. I have a main method, which creates and runs a new Thread using an anonymous inner Runnable class. The run() method, when it's done, calls a method on it's parent class (in the main thread) that calls notifyDataSetChanged() so that the main thread can redraw the new data… >>> More