f670ca05dd608c9d5b0300ca1dc493f6ffd8afa1
Stefan Schuermans sender static destination n...

Stefan Schuermans authored 12 years ago

src/noarch/SenderDest_impl.h  1) /* Blinker
Stefan Schuermans update copyright years

Stefan Schuermans authored 10 years ago

src/noarch/SenderDest_impl.h  2)    Copyright 2011-2014 Stefan Schuermans <stefan@blinkenarea.org>
Stefan Schuermans sender static destination n...

Stefan Schuermans authored 12 years ago

src/noarch/SenderDest_impl.h  3)    Copyleft GNU public license - http://www.gnu.org/copyleft/gpl.html
src/noarch/SenderDest_impl.h  4)    a blinkenarea.org project */
src/noarch/SenderDest_impl.h  5) 
Stefan Schuermans namespace for preprocessor...

Stefan Schuermans authored 12 years ago

src/noarch/SenderDest_impl.h  6) #ifndef BLINKER_SENDERDEST_IMPL_H
src/noarch/SenderDest_impl.h  7) #define BLINKER_SENDERDEST_IMPL_H
Stefan Schuermans sender static destination n...

Stefan Schuermans authored 12 years ago

src/noarch/SenderDest_impl.h  8) 
src/noarch/SenderDest_impl.h  9) #include <string>
src/noarch/SenderDest_impl.h 10) 
src/noarch/SenderDest_impl.h 11) #include "Directory.h"
src/noarch/SenderDest_impl.h 12) #include "File.h"
src/noarch/SenderDest_impl.h 13) #include "Module.h"
src/noarch/SenderDest_impl.h 14) #include "Sender.h"
src/noarch/SenderDest_impl.h 15) #include "SenderDest.h"
src/noarch/SenderDest_impl.h 16) #include "SettingFile.h"
src/noarch/SenderDest_impl.h 17) 
src/noarch/SenderDest_impl.h 18) namespace Blinker {
src/noarch/SenderDest_impl.h 19) 
src/noarch/SenderDest_impl.h 20) /**
src/noarch/SenderDest_impl.h 21)  * @brief constructor
src/noarch/SenderDest_impl.h 22)  * @param[in] sender owning sender object
Stefan Schuermans converted sender to use lis...

Stefan Schuermans authored 12 years ago

src/noarch/SenderDest_impl.h 23)  * @param[in] name destination name
Stefan Schuermans sender static destination n...

Stefan Schuermans authored 12 years ago

src/noarch/SenderDest_impl.h 24)  * @param[in] dirBase base directory
src/noarch/SenderDest_impl.h 25)  */
src/noarch/SenderDest_impl.h 26) template<typename ADDR, typename SOCK>
Stefan Schuermans converted sender to use lis...

Stefan Schuermans authored 12 years ago

src/noarch/SenderDest_impl.h 27) Sender<ADDR, SOCK>::Dest::Dest(Sender &sender, const std::string &name,
src/noarch/SenderDest_impl.h 28)                                const Directory &dirBase):
Stefan Schuermans sender static destination n...

Stefan Schuermans authored 12 years ago

src/noarch/SenderDest_impl.h 29)   m_sender(sender),
Stefan Schuermans converted sender to use lis...

Stefan Schuermans authored 12 years ago

src/noarch/SenderDest_impl.h 30)   m_name(name),
Stefan Schuermans sender static destination n...

Stefan Schuermans authored 12 years ago

src/noarch/SenderDest_impl.h 31)   m_fileAddr(dirBase.getFile("addr")),
Stefan Schuermans converted sender to use lis...

Stefan Schuermans authored 12 years ago

src/noarch/SenderDest_impl.h 32)   m_pData(&sender.m_noFrameData)
Stefan Schuermans sender static destination n...

Stefan Schuermans authored 12 years ago

src/noarch/SenderDest_impl.h 33) {
src/noarch/SenderDest_impl.h 34)   // set up
src/noarch/SenderDest_impl.h 35)   getAddr();
src/noarch/SenderDest_impl.h 36) }
src/noarch/SenderDest_impl.h 37) 
src/noarch/SenderDest_impl.h 38) /// destructor
src/noarch/SenderDest_impl.h 39) template<typename ADDR, typename SOCK>
src/noarch/SenderDest_impl.h 40) Sender<ADDR, SOCK>::Dest::~Dest()
src/noarch/SenderDest_impl.h 41) {
src/noarch/SenderDest_impl.h 42)   // send "no frame" protocol data to old address
Stefan Schuermans converted sender to use lis...

Stefan Schuermans authored 12 years ago

src/noarch/SenderDest_impl.h 43)   send(&m_sender.m_noFrameData);
Stefan Schuermans sender static destination n...

Stefan Schuermans authored 12 years ago

src/noarch/SenderDest_impl.h 44) }
src/noarch/SenderDest_impl.h 45) 
src/noarch/SenderDest_impl.h 46) /// check for update of configuration
src/noarch/SenderDest_impl.h 47) template<typename ADDR, typename SOCK>
src/noarch/SenderDest_impl.h 48) void Sender<ADDR, SOCK>::Dest::updateConfig()
src/noarch/SenderDest_impl.h 49) {
src/noarch/SenderDest_impl.h 50)   // address file was modified -> re-get address
src/noarch/SenderDest_impl.h 51)   if (m_fileAddr.checkModified())
src/noarch/SenderDest_impl.h 52)     getAddr();
src/noarch/SenderDest_impl.h 53) }
src/noarch/SenderDest_impl.h 54) 
src/noarch/SenderDest_impl.h 55) /**
src/noarch/SenderDest_impl.h 56)  * @brief set current protocol data
Stefan Schuermans simplified sender module a...

Stefan Schuermans authored 12 years ago

src/noarch/SenderDest_impl.h 57)  * @param[in] pData protocol data to send to address (empty if unknown)
Stefan Schuermans sender static destination n...

Stefan Schuermans authored 12 years ago

src/noarch/SenderDest_impl.h 58)  */
src/noarch/SenderDest_impl.h 59) template<typename ADDR, typename SOCK>
src/noarch/SenderDest_impl.h 60) void Sender<ADDR, SOCK>::Dest::setProtoData(const std::string *pData)
src/noarch/SenderDest_impl.h 61) {
src/noarch/SenderDest_impl.h 62)   // remember new data
src/noarch/SenderDest_impl.h 63)   m_pData = pData;
src/noarch/SenderDest_impl.h 64) 
src/noarch/SenderDest_impl.h 65)   // send new protocol data to current address
src/noarch/SenderDest_impl.h 66)   send(m_pData);
src/noarch/SenderDest_impl.h 67) }
src/noarch/SenderDest_impl.h 68) 
src/noarch/SenderDest_impl.h 69) /// (re-)get address
src/noarch/SenderDest_impl.h 70) template<typename ADDR, typename SOCK>
src/noarch/SenderDest_impl.h 71) void Sender<ADDR, SOCK>::Dest::getAddr()
src/noarch/SenderDest_impl.h 72) {
src/noarch/SenderDest_impl.h 73)   std::string strAddr;
src/noarch/SenderDest_impl.h 74) 
src/noarch/SenderDest_impl.h 75)   // send "no frame" protocol data to old address
Stefan Schuermans converted sender to use lis...

Stefan Schuermans authored 12 years ago

src/noarch/SenderDest_impl.h 76)   send(&m_sender.m_noFrameData);
Stefan Schuermans sender static destination n...

Stefan Schuermans authored 12 years ago

src/noarch/SenderDest_impl.h 77) 
Stefan Schuermans implemented specialized set...

Stefan Schuermans authored 12 years ago

src/noarch/SenderDest_impl.h 78)   // get new address from file
src/noarch/SenderDest_impl.h 79)   m_fileAddr.update();
Stefan Schuermans sender static destination n...

Stefan Schuermans authored 12 years ago

src/noarch/SenderDest_impl.h 80) 
src/noarch/SenderDest_impl.h 81)   // send current protocol data to new address
src/noarch/SenderDest_impl.h 82)   send(m_pData);
src/noarch/SenderDest_impl.h 83) }
src/noarch/SenderDest_impl.h 84) 
src/noarch/SenderDest_impl.h 85) /**
src/noarch/SenderDest_impl.h 86)  * @brief send protocol data to address
Stefan Schuermans simplified sender module a...

Stefan Schuermans authored 12 years ago

src/noarch/SenderDest_impl.h 87)  * @param[in] pData protocol data to send to address (empty if unknown)
Stefan Schuermans sender static destination n...

Stefan Schuermans authored 12 years ago

src/noarch/SenderDest_impl.h 88)  */
src/noarch/SenderDest_impl.h 89) template<typename ADDR, typename SOCK>
src/noarch/SenderDest_impl.h 90) void Sender<ADDR, SOCK>::Dest::send(const std::string *pData)
src/noarch/SenderDest_impl.h 91) {
Stefan Schuermans implemented specialized set...

Stefan Schuermans authored 12 years ago

src/noarch/SenderDest_impl.h 92)   if (m_sender.m_pSock && m_fileAddr.m_valid && !pData->empty())
src/noarch/SenderDest_impl.h 93)     m_sender.m_pSock->send(*pData, m_fileAddr.m_obj);
Stefan Schuermans sender static destination n...

Stefan Schuermans authored 12 years ago

src/noarch/SenderDest_impl.h 94) }
src/noarch/SenderDest_impl.h 95) 
src/noarch/SenderDest_impl.h 96) } // namespace Blinker
src/noarch/SenderDest_impl.h 97) 
Stefan Schuermans namespace for preprocessor...

Stefan Schuermans authored 12 years ago

src/noarch/SenderDest_impl.h 98) #endif // #ifndef BLINKER_SENDERDEST_IMPL_H