FACT++  1.0
template<class T>
void StateMachineFAD< T >::AddEndpoint ( const tcp::endpoint &  addr)
inlineprivate

Definition at line 1614 of file fadctrl.cc.

References i, ConnectionFAD::SetDataOutput(), Connection::SetDebugTx(), Connection::SetEndpoint(), ConnectionFAD::SetHexOutput(), and ConnectionFAD::SetVerbose().

1615  {
1616  int i=0;
1617  while (i<40)
1618  {
1619  if (fBoards.find(i)==fBoards.end())
1620  break;
1621  i++;
1622  }
1623 
1624  if (i==40)
1625  {
1626  T::Warn("Not more than 40 slots allowed.");
1627  return;
1628  }
1629 
1630  ConnectionFAD *fad = new ConnectionFAD(*this, *this, i);
1631 
1632  fad->SetEndpoint(addr);
1633  fad->SetVerbose(fIsVerbose);
1634  fad->SetHexOutput(fIsHexOutput);
1636  fad->SetDebugTx(fDebugTx);
1637 
1638  fBoards[i] = fad;
1639  }
void SetDebugTx(bool b=true)
Definition: Connection.h:149
bool fIsDataOutput
Definition: fadctrl.cc:559
BoardList fBoards
Definition: fadctrl.cc:555
int i
Definition: db_dim_client.c:21
bool fIsHexOutput
Definition: fadctrl.cc:558
void SetEndpoint(const std::string &addr, int port)
void SetVerbose(bool b)
Definition: fadctrl.cc:480
void SetDataOutput(bool b)
Definition: fadctrl.cc:490
void SetHexOutput(bool b)
Definition: fadctrl.cc:485

+ Here is the call graph for this function: