pvAccessCPP
7.1.7
|
#include <server/pv/beaconEmitter.h>
Public Types | |
typedef std::tr1::shared_ptr < BeaconEmitter > | shared_pointer |
typedef std::tr1::shared_ptr < const BeaconEmitter > | const_shared_pointer |
typedef std::tr1::weak_ptr < TransportSender > | weak_pointer |
typedef std::tr1::weak_ptr < const TransportSender > | const_weak_pointer |
Public Member Functions | |
BeaconEmitter (std::string const &protocol, Transport::shared_pointer const &transport, std::tr1::shared_ptr< ServerContextImpl > &context) | |
Constructor. More... | |
void | send (epics::pvData::ByteBuffer *buffer, TransportSendControl *control) |
Called by transport. More... | |
void | timerStopped () |
void | start () |
Start emitting. | |
void | reschedule () |
Reschedule timer. | |
void | callback () |
Timer callback. | |
void | destroy () |
virtual void | lock () |
virtual void | unlock () |
Public Attributes | |
size_t | bytesTX |
size_t | bytesRX |
Definition at line 40 of file beaconEmitter.h.
epics::pvAccess::BeaconEmitter::BeaconEmitter | ( | std::string const & | protocol, |
Transport::shared_pointer const & | transport, | ||
std::tr1::shared_ptr< ServerContextImpl > & | context | ||
) |
Constructor.
protocol | a protocol (transport) name to report. |
transport | transport to be used to send beacons. |
context | PVA context. |
|
virtual |
Called by transport.
By this call transport gives callee ownership over the buffer. Calls on TransportSendControl
instance must be made from calling thread. Moreover, ownership is valid only for the time of call of this method. NOTE: these limitations allow efficient implementation.
Implements epics::pvAccess::TransportSender.