Class for the server side receiving requests from a client.
More...
#include <ZMQReceiver.h>
Class for the server side receiving requests from a client.
◆ ZMQReceiver() [1/2]
| open3d::io::rpc::ZMQReceiver::ZMQReceiver |
( |
const std::string & | address = "tcp://127.0.0.1:51454", |
|
|
int | timeout = 10000 ) |
Constructs a receiver listening on the specified address.
- Parameters
-
| address | Address to listen on. |
| timeout | Timeout in milliseconds for sending the reply. |
◆ ZMQReceiver() [2/2]
| open3d::io::rpc::ZMQReceiver::ZMQReceiver |
( |
const ZMQReceiver & | | ) |
|
|
delete |
◆ ~ZMQReceiver()
| open3d::io::rpc::ZMQReceiver::~ZMQReceiver |
( |
| ) |
|
|
virtual |
◆ GetLastError()
| std::runtime_error open3d::io::rpc::ZMQReceiver::GetLastError |
( |
| ) |
|
Returns the last error from the mainloop thread.
◆ operator=()
◆ SetMessageProcessor()
| void open3d::io::rpc::ZMQReceiver::SetMessageProcessor |
( |
std::shared_ptr< MessageProcessorBase > | processor | ) |
|
Sets the message processor object which will process incoming messages.
◆ Start()
| void open3d::io::rpc::ZMQReceiver::Start |
( |
| ) |
|
Starts the receiver mainloop in a new thread.
◆ Stop()
| void open3d::io::rpc::ZMQReceiver::Stop |
( |
| ) |
|
Stops the receiver mainloop and joins the thread. This function blocks until the mainloop is done with processing messages that have already been received.
The documentation for this class was generated from the following files: