The ScriptSender class starts a TCPServer for a robot to connect to and waits for a request to receive a program. This program is then delivered to the requesting robot.
More...
#include <script_sender.h>
The ScriptSender class starts a TCPServer for a robot to connect to and waits for a request to receive a program. This program is then delivered to the requesting robot.
Definition at line 45 of file script_sender.h.
urcl::comm::ScriptSender::ScriptSender |
( |
| ) |
|
|
delete |
urcl::comm::ScriptSender::ScriptSender |
( |
uint32_t |
port, |
|
|
const std::string & |
program |
|
) |
| |
|
inline |
Creates a ScriptSender object, including a new TCPServer.
- Parameters
-
port | Port to start the server on |
program | Program to send to the robot upon request |
Definition at line 55 of file script_sender.h.
void urcl::comm::ScriptSender::connectionCallback |
( |
const int |
filedescriptor | ) |
|
|
inlineprivate |
void urcl::comm::ScriptSender::disconnectionCallback |
( |
const int |
filedescriptor | ) |
|
|
inlineprivate |
void urcl::comm::ScriptSender::messageCallback |
( |
const int |
filedescriptor, |
|
|
char * |
buffer |
|
) |
| |
|
inlineprivate |
void urcl::comm::ScriptSender::sendProgram |
( |
const int |
filedescriptor | ) |
|
|
inlineprivate |
std::string urcl::comm::ScriptSender::program_ |
|
private |
const std::string urcl::comm::ScriptSender::PROGRAM_REQUEST_ = std::string("request_program\n") |
|
private |
std::thread urcl::comm::ScriptSender::script_thread_ |
|
private |
The documentation for this class was generated from the following file:
ur_client_library
Author(s): Thomas Timm Andersen, Simon Rasmussen, Felix Exner, Lea Steffen, Tristan Schnell
autogenerated on Sun May 9 2021 02:16:26