DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
WIBCommon.cpp
Go to the documentation of this file.
1
11#include "wibmod/WIBCommon.hpp"
12
13#include "logging/Logging.hpp"
14
15#include <string>
16
17namespace dunedaq {
18namespace wibmod {
19
20WIBCommon::WIBCommon(const std::string &wib_addr) :
21 context(1),
22 socket(context, ZMQ_REQ)
23{
24 socket.connect(wib_addr); // tcp://192.168.121.*:1234
25 TLOG_DEBUG(0) << wib_addr << " Connected!";
26}
27
29{
30 socket.close();
31}
32
33} // namespace wibmod
34} // namespace dunedaq
WIBCommon(const std::string &wib_addr)
Definition WIBCommon.cpp:20
#define TLOG_DEBUG(lvl,...)
Definition Logging.hpp:112
Including Qt Headers.