This is Unofficial EPICS BASE Doxygen Site
epics::pvAccess::BeaconHandler Class Reference

#include "beaconHandler.h"

Public Member Functions

 POINTER_DEFINITIONS (BeaconHandler)
 
 BeaconHandler (Context::shared_pointer const &context, const osiSockAddr *responseFrom)
 
virtual ~BeaconHandler ()
 
void beaconNotify (osiSockAddr *from, epics::pvData::int8 remoteTransportRevision, epics::pvData::TimeStamp *timestamp, ServerGUID const &guid, epics::pvData::int16 sequentalID, epics::pvData::int16 changeCount, const epics::pvData::PVFieldPtr &data)
 

Detailed Description

BeaconHandler

Definition at line 35 of file beaconHandler.h.

Constructor & Destructor Documentation

epics::pvAccess::BeaconHandler::BeaconHandler ( Context::shared_pointer const &  context,
const osiSockAddr responseFrom 
)

Constructor.

Definition at line 18 of file beaconHandler.cpp.

19  :
20  _context(Context::weak_pointer(context)),
21  _mutex(),
22  _serverGUID(),
23  _serverChangeCount(-1),
24  _first(true)
25 {
26 
27 }
epics::pvAccess::BeaconHandler::~BeaconHandler ( )
virtual

Definition at line 29 of file beaconHandler.cpp.

30 {
31 }

Member Function Documentation

void epics::pvAccess::BeaconHandler::beaconNotify ( osiSockAddr from,
epics::pvData::int8  remoteTransportRevision,
epics::pvData::TimeStamp timestamp,
ServerGUID const &  guid,
epics::pvData::int16  sequentalID,
epics::pvData::int16  changeCount,
const epics::pvData::PVFieldPtr data 
)

Update beacon period and do analitical checks (server restared, routing problems, etc.)

Parameters
fromwho is notifying.
remoteTransportRevisionencoded (major, minor) revision.
guidserver GUID.
sequentalIDsequential ID.
changeCountchange count.
dataserver status data, can be NULL.

Definition at line 33 of file beaconHandler.cpp.

37 {
38  bool networkChanged = updateBeacon(remoteTransportRevision, timestamp, guid, sequentalID, changeCount);
39  // TODO: reduce search timers
40  (void)networkChanged;
41 }
epics::pvAccess::BeaconHandler::POINTER_DEFINITIONS ( BeaconHandler  )

The documentation for this class was generated from the following files: