----------------------------------------------------------------------------- Constructor -----------------------------------------------------------------------------
| 143 | // Constructor |
| 144 | //----------------------------------------------------------------------------- |
| 145 | Driver::Driver |
| 146 | ( |
| 147 | string const& _controllerPath, |
| 148 | ControllerInterface const& _interface |
| 149 | ): |
| 150 | m_driverThread( new Thread( "driver" ) ), |
| 151 | m_dns ( new DNSThread(this) ), |
| 152 | m_dnsThread ( new Thread( "dns" ) ), |
| 153 | m_initMutex(new Mutex()), |
| 154 | m_exit( false ), |
| 155 | m_init( false ), |
| 156 | m_awakeNodesQueried( false ), |
| 157 | m_allNodesQueried( false ), |
| 158 | m_notifytransactions( false ), |
| 159 | m_timer ( new TimerThread( this ) ), |
| 160 | m_timerThread ( new Thread( "timer" ) ), |
| 161 | m_controllerInterfaceType( _interface ), |
| 162 | m_controllerPath( _controllerPath ), |
| 163 | m_controller( NULL ), |
| 164 | m_homeId( 0 ), |
| 165 | m_libraryVersion( "" ), |
| 166 | m_libraryTypeName( "" ), |
| 167 | m_libraryType( 0 ), |
| 168 | m_manufacturerId( 0 ), |
| 169 | m_productType( 0 ), |
| 170 | m_productId ( 0 ), |
| 171 | m_initVersion( 0 ), |
| 172 | m_initCaps( 0 ), |
| 173 | m_controllerCaps( 0 ), |
| 174 | m_Controller_nodeId ( 0 ), |
| 175 | m_nodeMutex( new Mutex() ), |
| 176 | m_controllerReplication( NULL ), |
| 177 | m_transmitOptions( TRANSMIT_OPTION_ACK | TRANSMIT_OPTION_AUTO_ROUTE | TRANSMIT_OPTION_EXPLORE ), |
| 178 | m_waitingForAck( false ), |
| 179 | m_expectedCallbackId( 0 ), |
| 180 | m_expectedReply( 0 ), |
| 181 | m_expectedCommandClassId( 0 ), |
| 182 | m_expectedNodeId( 0 ), |
| 183 | m_pollThread( new Thread( "poll" ) ), |
| 184 | m_pollMutex( new Mutex() ), |
| 185 | m_pollInterval( 0 ), |
| 186 | m_bIntervalBetweenPolls( false ), // if set to true (via SetPollInterval), the pollInterval will be interspersed between each poll (so a much smaller m_pollInterval like 100, 500, or 1,000 may be appropriate) |
| 187 | m_currentControllerCommand( NULL ), |
| 188 | m_SUCNodeId( 0 ), |
| 189 | m_controllerResetEvent( NULL ), |
| 190 | m_sendMutex( new Mutex() ), |
| 191 | m_currentMsg( NULL ), |
| 192 | m_virtualNeighborsReceived( false ), |
| 193 | m_notificationsEvent( new Event() ), |
| 194 | m_SOFCnt( 0 ), |
| 195 | m_ACKWaiting( 0 ), |
| 196 | m_readAborts( 0 ), |
| 197 | m_badChecksum( 0 ), |
| 198 | m_readCnt( 0 ), |
| 199 | m_writeCnt( 0 ), |
| 200 | m_CANCnt( 0 ), |
| 201 | m_NAKCnt( 0 ), |
| 202 | m_ACKCnt( 0 ), |
nothing calls this directly
no test coverage detected