mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
FairMQ: Monitor Meta socket connection and insert address vector
This commit is contained in:
committed by
Mohammad Al-Turany
parent
92320604a9
commit
df5d5d4086
@@ -10,6 +10,7 @@
|
||||
#define FAIR_MQ_OFI_CONTEXT_H
|
||||
|
||||
#include <memory>
|
||||
#include <netinet/in.h>
|
||||
#include <rdma/fabric.h>
|
||||
#include <string>
|
||||
#include <stdexcept>
|
||||
@@ -43,6 +44,14 @@ class Context
|
||||
auto GetZmqVersion() const -> std::string;
|
||||
auto GetOfiApiVersion() const -> std::string;
|
||||
auto GetZmqContext() const -> void* { return fZmqContext; }
|
||||
auto InsertAddressVector(sockaddr_in address) -> fi_addr_t;
|
||||
struct Address {
|
||||
std::string Protocol;
|
||||
std::string Ip;
|
||||
unsigned int Port;
|
||||
};
|
||||
static auto ConvertAddress(std::string address) -> Address;
|
||||
static auto ConvertAddress(Address address) -> sockaddr_in;
|
||||
|
||||
private:
|
||||
void* fZmqContext;
|
||||
|
Reference in New Issue
Block a user