Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "brick.h"
- #include "ip_connection.h" // Liegt im gleichem Ordner wie die restlichen Source files
- Brick::Brick(QString newHost, QString newPort, QString newUid)
- {
- this->host = newHost;
- this->port = newPort;
- this->uid = newUid;
- }
- void Brick::connectToBrick() {
- IPConnection ipcon;
- if(ipcon_create(&ipcon, this->host.toAscii(), this->port.toInt()) < 0) {
- emit writeToLog("Konnte keine Verbindung herstellen!");
- }
- else {
- emit writeToLog("Verbindung erfolgreich aufgebaut!");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment