Belle II Software  release-05-02-19
ZMQNullConnection.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2019 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Nils Braun *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <framework/pcore/zmq/connections/ZMQConnection.h>
13 
14 #include <memory>
15 #include <zmq.hpp>
16 
17 namespace Belle2 {
22  class ZMQNullConnection : public ZMQConnection {
24  public:
26  std::vector<zmq::socket_t*> getSockets() const final;
27 
29  void handleIncomingData();
30  };
32 }
Belle2::ZMQNullConnection::getSockets
std::vector< zmq::socket_t * > getSockets() const final
There is no socket, so just return an empty list.
Definition: ZMQNullConnection.cc:19
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ZMQNullConnection::handleIncomingData
void handleIncomingData()
Raise an exception if called - there should never be any incoming message.
Definition: ZMQNullConnection.cc:14