=== modified file 'src/ca/udpiiu.cpp' --- src/ca/udpiiu.cpp 2010-08-10 21:05:46 +0000 +++ src/ca/udpiiu.cpp 2011-07-26 22:23:34 +0000 @@ -81,8 +81,9 @@ cac::lowestPriorityLevelAbove ( cac::lowestPriorityLevelAbove ( cac.getInitializingThreadsPriority () ) ) ), + m_repeaterTimerNotify ( *this ), repeaterSubscribeTmr ( - *this, timerQueue, cbMutexIn, ctxNotifyIn ), + m_repeaterTimerNotify, timerQueue, cbMutexIn, ctxNotifyIn ), govTmr ( *this, timerQueue, cacMutexIn ), maxPeriod ( maxSearchPeriodDefault ), rtteMean ( minRoundTripEstimate ), @@ -397,14 +398,14 @@ } /* - * udpiiu::repeaterRegistrationMessage () + * udpiiu::M_repeaterTimerNotify::repeaterRegistrationMessage () * * register with the repeater */ -void udpiiu::repeaterRegistrationMessage ( unsigned attemptNumber ) +void udpiiu :: M_repeaterTimerNotify :: repeaterRegistrationMessage ( unsigned attemptNumber ) { - epicsGuard < epicsMutex > cbGuard ( this->cacMutex ); - caRepeaterRegistrationMessage ( this->sock, this->repeaterPort, attemptNumber ); + epicsGuard < epicsMutex > cbGuard ( m_udpiiu.cacMutex ); + caRepeaterRegistrationMessage ( m_udpiiu.sock, m_udpiiu.repeaterPort, attemptNumber ); } /* @@ -1233,16 +1234,16 @@ this->ppSearchTmr[0]->installChannel ( guard, chan ); } -int udpiiu :: printFormated ( - epicsGuard < epicsMutex > & cbGuard, - const char * pformat, ... ) +int udpiiu :: M_repeaterTimerNotify :: printFormated ( + epicsGuard < epicsMutex > & cbGuard, + const char * pformat, ... ) { va_list theArgs; int status; va_start ( theArgs, pformat ); - status = this->cacRef.varArgsPrintFormated ( cbGuard, pformat, theArgs ); + status = m_udpiiu.cacRef.varArgsPrintFormated ( cbGuard, pformat, theArgs ); va_end ( theArgs ); === modified file 'src/ca/udpiiu.h' --- src/ca/udpiiu.h 2011-06-01 22:22:12 +0000 +++ src/ca/udpiiu.h 2011-07-26 22:23:34 +0000 @@ -88,8 +88,7 @@ class udpiiu : private netiiu, private searchTimerNotify, - private disconnectGovernorNotify, - private repeaterTimerNotify { + private disconnectGovernorNotify { public: udpiiu ( epicsGuard < epicsMutex > & cacGuard, @@ -139,9 +138,24 @@ private: udpiiu & _udpiiu; }; + class M_repeaterTimerNotify : + public repeaterTimerNotify { + public: + M_repeaterTimerNotify ( udpiiu & iiu ) : + m_udpiiu ( iiu ) {} + // repeaterTimerNotify + void repeaterRegistrationMessage ( + unsigned attemptNumber ); + int printFormated ( + epicsGuard < epicsMutex > & callbackControl, + const char * pformat, ... ); + private: + udpiiu & m_udpiiu; + }; char xmitBuf [MAX_UDP_SEND]; char recvBuf [MAX_UDP_RECV]; udpRecvThread recvThread; + M_repeaterTimerNotify m_repeaterTimerNotify; repeaterSubscribeTimer repeaterSubscribeTmr; disconnectGovernorTimer govTmr; tsDLList < SearchDest > _searchDestList; @@ -278,14 +292,6 @@ void govExpireNotify ( epicsGuard < epicsMutex > &, nciu & ); - // repeaterTimerNotify - void repeaterRegistrationMessage ( - unsigned attemptNumber ); - - int printFormated ( - epicsGuard < epicsMutex > & callbackControl, - const char * pformat, ... ); - udpiiu ( const udpiiu & ); udpiiu & operator = ( const udpiiu & );