LibDS
Qt-based library for controlling FRC robots
Public Slots | Signals | Private Attributes | List of all members
NetConsole Class Reference

Receives and sends broadcasted messages through the LAN. More...

#include <NetConsole.h>

Inheritance diagram for NetConsole:

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
 

Detailed Description

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.

Member Function Documentation

void NetConsole::sendMessage ( const QString &  message)
slot

Broadcasts the given message to the robot.

Note
the output port must not be 0 in order for this to work
void NetConsole::setInputPort ( int  port)
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().

void NetConsole::setOutputPort ( int  port)
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().


The documentation for this class was generated from the following files: