Represents a communication channel with the ICL using a websocket.
More...
#include <websocket_communicator.h>
|
| WebSocketCommunicator (std::string host, std::string port) |
| Constructs a communication channel with the ICL based on a host and port.
|
|
| ~WebSocketCommunicator () override=default |
|
void | open () override |
| Opens the communication channel with the ICL.
|
|
void | close () override |
| Closes the communication channel with the ICL.
|
|
bool | is_open () override |
| Checks if the communication channel is open or not.
|
|
Response | request_with_response (const Command &command) override |
| Sends a command to the ICL and returns the response.
|
|
virtual | ~Communicator ()=default |
|
Represents a communication channel with the ICL using a websocket.
◆ WebSocketCommunicator()
horiba::communication::WebSocketCommunicator::WebSocketCommunicator |
( |
std::string | host, |
|
|
std::string | port ) |
Constructs a communication channel with the ICL based on a host and port.
- Parameters
-
host | The host to connect to |
port | The port to connect to |
◆ ~WebSocketCommunicator()
horiba::communication::WebSocketCommunicator::~WebSocketCommunicator |
( |
| ) |
|
|
overridedefault |
◆ close()
void horiba::communication::WebSocketCommunicator::close |
( |
| ) |
|
|
overridevirtual |
◆ is_open()
bool horiba::communication::WebSocketCommunicator::is_open |
( |
| ) |
|
|
overridevirtual |
◆ open()
void horiba::communication::WebSocketCommunicator::open |
( |
| ) |
|
|
overridevirtual |
◆ request_with_response()
Response horiba::communication::WebSocketCommunicator::request_with_response |
( |
const Command & | command | ) |
|
|
overridevirtual |
Sends a command to the ICL and returns the response.
- Parameters
-
command | The command for the ICL |
- Returns
- The response from the ICL
Implements horiba::communication::Communicator.
The documentation for this class was generated from the following file: