MCPcopy Create free account
hub / github.com/CasparCG/client / RrupDevice

Method RrupDevice

src/Repository/RrupDevice.cpp:10–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include <QtCore/QUrl>
9
10RrupDevice::RrupDevice(const QString& address, int port, QObject* parent)
11 : QObject(parent),
12 command(RrupDevice::NONE), port(port), state(RrupDevice::ExpectingHeader), connected(false), address(address)
13{
14 this->socket = new QTcpSocket(this);
15
16 this->decoder = new QTextDecoder(QTextCodec::codecForName("UTF-8"));
17
18 QObject::connect(this->socket, SIGNAL(readyRead()), this, SLOT(readMessage()));
19 QObject::connect(this->socket, SIGNAL(connected()), this, SLOT(setConnected()));
20 QObject::connect(this->socket, SIGNAL(disconnected()), this, SLOT(setDisconnected()));
21}
22
23RrupDevice::~RrupDevice()
24{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected