Expose BIND and CONNECT states for use with dynamic configuration

introduce FairMQ interface version
This commit is contained in:
Alexey Rybalchenko
2015-01-28 14:24:14 +01:00
parent 6d65c4313a
commit 8a82afe184
22 changed files with 255 additions and 54 deletions

View File

@@ -61,7 +61,7 @@ string FairMQSocketNN::GetId()
return fId;
}
void FairMQSocketNN::Bind(const string& address)
bool FairMQSocketNN::Bind(const string& address)
{
LOG(INFO) << "bind socket #" << fId << " on " << address;
@@ -69,7 +69,9 @@ void FairMQSocketNN::Bind(const string& address)
if (eid < 0)
{
LOG(ERROR) << "failed binding socket #" << fId << ", reason: " << nn_strerror(errno);
return false;
}
return true;
}
void FairMQSocketNN::Connect(const string& address)