FACT++  1.0
void EventBuilderWrapper::ConnectSlot ( unsigned int  i,
const tcp::endpoint &  addr 
)
inline

Definition at line 398 of file EventBuilderWrapper.h.

References g_port, i, DimService::setQuality(), FACT_SOCK::sockDef, and DimDescribedService::Update().

399  {
400  if (i>39)
401  return;
402 
403  fRunInProgress = -1;
404 
405  if (addr==tcp::endpoint())
406  {
407  // In this order
408  g_port[i].sockDef = 0;
409 
411  fDimIncomplete.Update(uint64_t(0));
412  return;
413  }
414 
415  struct sockaddr_in sockaddr; //IP for each socket
416  sockaddr.sin_family = AF_INET;
417  sockaddr.sin_addr.s_addr = htonl(addr.address().to_v4().to_ulong());
418  sockaddr.sin_port = htons(addr.port());
419  memcpy(&g_port[i].sockAddr, &sockaddr, sizeof(struct sockaddr_in));
420 
421  // In this order
422  g_port[i].sockDef = 1;
423 
425  fDimIncomplete.Update(uint64_t(0));
426  }
int i
Definition: db_dim_client.c:21
void setQuality(int quality)
Definition: discpp.cxx:1256
FACT_SOCK g_port[NBOARDS]
Definition: EventBuilder.cc:80
int sockDef
Definition: FAD.h:125
DimDescribedService fDimIncomplete

+ Here is the call graph for this function: