- Timestamp:
- 04/10/13 10:50:12 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/EventBuilderWrapper.h
r15286 r15294 365 365 } 366 366 367 g_port[i].sockAddr.sin_family = AF_INET; 368 g_port[i].sockAddr.sin_addr.s_addr = htonl(addr.address().to_v4().to_ulong()); 369 g_port[i].sockAddr.sin_port = htons(addr.port()); 367 struct sockaddr_in sockaddr; //IP for each socket 368 sockaddr.sin_family = AF_INET; 369 sockaddr.sin_addr.s_addr = htonl(addr.address().to_v4().to_ulong()); 370 sockaddr.sin_port = htons(addr.port()); 371 memcpy(&g_port[i].sockAddr, &sockaddr, sizeof(struct sockaddr_in)); 372 370 373 // In this order 371 374 g_port[i].sockDef = 1; 372 } 375 376 fDimIncomplete.setQuality(0); 377 fDimIncomplete.Update(uint64_t(0)); 378 } 379 373 380 void DisconnectSlot(unsigned int i) 374 381 { … … 378 385 g_port[i].sockDef = 0; 379 386 // In this order 380 g_port[i].sockAddr.sin_family = AF_INET; 381 g_port[i].sockAddr.sin_addr.s_addr = 0; 382 g_port[i].sockAddr.sin_port = 0; 387 388 struct sockaddr_in addr; //IP for each socket 389 addr.sin_family = AF_INET; 390 addr.sin_addr.s_addr = 0; 391 addr.sin_port = 0; 392 memcpy(&g_port[i].sockAddr, &addr, sizeof(struct sockaddr_in)); 393 394 fDimIncomplete.setQuality(0); 395 fDimIncomplete.Update(uint64_t(0)); 383 396 } 384 397 void IgnoreSlot(unsigned int i) … … 1219 1232 void factReportIncomplete(uint64_t rep) 1220 1233 { 1234 fDimIncomplete.setQuality(1); 1221 1235 fDimIncomplete.Update(rep); 1222 1236 }
Note:
See TracChangeset
for help on using the changeset viewer.