mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Refactor FairMQTools
* Split header, add common header * Transform to canonical namespace * Deprecate old header * Adapt to new Tools.h
This commit is contained in:
committed by
Mohammad Al-Turany
parent
9215c81362
commit
d2c78479f0
@@ -2,7 +2,7 @@
|
||||
|
||||
Contains common tools for use by FairMQ and/or users.
|
||||
|
||||
## FairMQ::tools::getHostIPs
|
||||
## fair::mq::tools::getHostIPs
|
||||
|
||||
Fills a map with the network interfaces and their IP addresses available on the current host.
|
||||
|
||||
@@ -13,13 +13,13 @@ Fills a map with the network interfaces and their IP addresses available on the
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
#include "FairMQTools.h"
|
||||
#include <fairmq/Tools.h>
|
||||
|
||||
void main()
|
||||
{
|
||||
std::map<string,string> IPs;
|
||||
|
||||
FairMQ::tools::getHostIPs(IPs);
|
||||
fair::mq::tools::getHostIPs(IPs);
|
||||
|
||||
for (std::map<string,string>::iterator it = IPs.begin(); it != IPs.end(); ++it)
|
||||
{
|
||||
@@ -32,4 +32,4 @@ void main()
|
||||
eth0: 123.123.1.123
|
||||
ib0: 123.123.2.123
|
||||
lo: 127.0.0.1
|
||||
```
|
||||
```
|
||||
|
Reference in New Issue
Block a user