19 #include <QtNetwork/QHostAddress> 37 virtual bool isConnected()
const = 0;
40 virtual void setHullNumber(
int myHullNumber) = 0;
43 virtual QHostAddress serverIp()
const = 0;
46 virtual QHostAddress myIp()
const = 0;
49 virtual void clearQueue() = 0;
52 virtual void stopWaiting() = 0;
55 virtual bool isEnabled() = 0;
59 virtual void connect(
const QString &ip,
int port) = 0;
62 virtual void connect(
const QString &ip) = 0;
65 virtual void send(
int hullNumber,
const QString &message) = 0;
68 virtual void send(
const QString &message) = 0;
71 virtual bool hasMessages() = 0;
74 virtual void renewIp() = 0;
80 virtual QString receive(
bool wait =
true) = 0;
83 virtual int myHullNumber()
const = 0;
89 void newMessage(
int sender,
const QString &message);
92 void connectionStatusChanged(
bool connected);
static const int port
Definition: trikCommunicatorTest.cpp:24
Definition: trikCommunicator.h:31
#define TRIKNETWORK_EXPORT
Definition: declSpec.h:23
Allows communication between robots.
Definition: mailboxInterface.h:31