mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-16 10:01:47 +00:00
Expose BIND and CONNECT states for use with dynamic configuration
introduce FairMQ interface version
This commit is contained in:
@@ -72,7 +72,7 @@ string FairMQSocketZMQ::GetId()
|
||||
return fId;
|
||||
}
|
||||
|
||||
void FairMQSocketZMQ::Bind(const string& address)
|
||||
bool FairMQSocketZMQ::Bind(const string& address)
|
||||
{
|
||||
LOG(INFO) << "bind socket #" << fId << " on " << address;
|
||||
|
||||
@@ -80,7 +80,9 @@ void FairMQSocketZMQ::Bind(const string& address)
|
||||
if (rc != 0)
|
||||
{
|
||||
LOG(ERROR) << "failed binding socket #" << fId << ", reason: " << zmq_strerror(errno);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void FairMQSocketZMQ::Connect(const string& address)
|
||||
|
Reference in New Issue
Block a user