pvac Add ConnectEvent::peerName
This commit is contained in:
@@ -77,6 +77,8 @@ struct ClientChannel::Impl : public pva::ChannelRequester,
|
||||
try {
|
||||
ConnectEvent evt;
|
||||
evt.connected = connectionState==pva::Channel::CONNECTED;
|
||||
if(evt.connected)
|
||||
evt.peerName = channel->getRemoteAddress();
|
||||
for(listeners_t::const_iterator it=notify.begin(), end=notify.end(); it!=end; ++it)
|
||||
{
|
||||
try {
|
||||
|
||||
@@ -232,7 +232,11 @@ private:
|
||||
//! information on connect/disconnect
|
||||
struct ConnectEvent
|
||||
{
|
||||
//! Is this a connection, or disconnection, event.
|
||||
bool connected;
|
||||
//! For connection events. This is the name provided by the peer (cf. epics::pvAccess::Channel::getRemoteAddress() ).
|
||||
//! @since >6.1.0
|
||||
std::string peerName;
|
||||
};
|
||||
|
||||
//! Thrown by blocking methods of ClientChannel on operation timeout
|
||||
|
||||
Reference in New Issue
Block a user