LibDS
Qt-based library for controlling FRC robots
|
Receives and sends broadcasted messages through the LAN. More...
#include <NetConsole.h>
Public Slots | |
void | setInputPort (int port) |
void | setOutputPort (int port) |
void | sendMessage (const QString &message) |
Signals | |
void | newMessage (const QString &message) |
Private Attributes | |
int | m_outputPort |
QUdpSocket | m_inputSocket |
QUdpSocket | m_outputSocket |
Receives and sends broadcasted messages through the LAN.
The NetConsole
allows the client to receive and send broadcasted messages through the network. These messages are mostly robot logs or simple client-to-robot commands for diagnostic purposes.
|
slot |
Broadcasts the given message to the robot.
0
in order for this to work
|
slot |
Changes the port in which we receive broadcasted robot messages. If the port is set to 0
, then the NetConsole
will disable the input socket.
Referenced by DriverStation::setProtocol().
|
slot |
Changes the port in which we broadcast commands to the robot. If the port is set to 0
, then the NetConsole
will disable the output socket.
Referenced by DriverStation::setProtocol().