FairMQ/fairmq/tools
Alexey Rybalchenko 16fd63cd5b Enable new callback API
- OnData() channel data handler.
 - ConditionalRun() for devices without incoming data.
 - Header file with common main(), to be extended with getDevice/addCustomOptions.
 - Update examples (MQ/Tutorial3) to use the new API and config.
 - NewSimpleMessage() for simpler creation of small messages (additional copy).
 - Replace SetProperty/GetProperty with fConfig access.
 - Runtime configurable channel names for common devices.
 - Configurable logging interval per channel.
 - FairMQMultiplier for distributing same data to multiple outputs.
 - Cleanup state machine messages.
 - Cmd option to toggle signal handling.
 - Simpler API for send/receive timeouts.
 - Enable --log-to-file.
 - Fix coverity issues, warnings.
 - Various code cleanup and minor tweaks.
2016-09-30 14:36:35 +02:00
..
FairMQDDSTools.h Fix further effc++ and reorder warnings. 2016-09-19 11:10:46 +02:00
FairMQTools.h Configuration and DDS example/tools updates 2016-04-25 17:35:57 +02:00
README.md add helper function to find IPs of the node 2015-01-28 19:57:59 +01:00
runSimpleMQStateMachine.h Enable new callback API 2016-09-30 14:36:35 +02:00

FairMQ Tools

Contains common tools for use by FairMQ and/or users.

FairMQ::tools::getHostIPs

Fills a map with the network interfaces and their IP addresses available on the current host.

Example usage

#include <map>
#include <string>
#include <iostream>

#include "FairMQTools.h"

void main()
{
    std::map<string,string> IPs;

    FairMQ::tools::getHostIPs(IPs);

    for (std::map<string,string>::iterator it = IPs.begin(); it != IPs.end(); ++it)
    {
        std::cout << it->first << ": " << it->second << std::endl;
    }
}
Example Output
eth0: 123.123.1.123
ib0: 123.123.2.123
lo: 127.0.0.1