ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
DummyReceiver.cpp
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #include "io/rpc/DummyReceiver.h"
9 
10 #include <zmq.hpp>
11 
13 #include "io/rpc/Messages.h"
14 
15 namespace cloudViewer {
16 namespace io {
17 namespace rpc {
18 
19 DummyReceiver::DummyReceiver(const std::string& address, int timeout)
20  : ZMQReceiver(address, timeout) {
21  SetMessageProcessor(std::make_shared<DummyMessageProcessor>());
22 }
23 
24 } // namespace rpc
25 } // namespace io
26 } // namespace cloudViewer
DummyReceiver(const std::string &address, int timeout)
Class for the server side receiving requests from a client.
Definition: ZMQReceiver.h:39
void SetMessageProcessor(std::shared_ptr< MessageProcessorBase > processor)
Sets the message processor object which will process incoming messages.
Generic file read and write utility for python interface.