summaryrefslogtreecommitdiffstats
path: root/workspace/LogReceiver/logreceiver.h
diff options
context:
space:
mode:
authorNiklas2011-08-30 16:16:30 +0200
committerNiklas2011-08-30 16:16:30 +0200
commit0c23447d55c144c6c7e2bfb1b526a64bb5051f2e (patch)
tree745cabb945a4f5a53e642199aae78b4263f2fd8d /workspace/LogReceiver/logreceiver.h
parentadded check for file existens. renamed the dhcpcd bin to customdhcpcd. tempo... (diff)
downloadfbgui-0c23447d55c144c6c7e2bfb1b526a64bb5051f2e.tar.gz
fbgui-0c23447d55c144c6c7e2bfb1b526a64bb5051f2e.tar.xz
fbgui-0c23447d55c144c6c7e2bfb1b526a64bb5051f2e.zip
changed sleep(1) to usleep(500) after every send to socket in logwriter.c Main Problem with this workaround: with increasing number of messages, the program will become slower and slower. also added a new map in which i store the pair (interfacename, qlocalsocket client) with this i can check if there are still some messages left, when a process finishes
Diffstat (limited to 'workspace/LogReceiver/logreceiver.h')
-rw-r--r--workspace/LogReceiver/logreceiver.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/workspace/LogReceiver/logreceiver.h b/workspace/LogReceiver/logreceiver.h
index 6b32aa8..ce6d070 100644
--- a/workspace/LogReceiver/logreceiver.h
+++ b/workspace/LogReceiver/logreceiver.h
@@ -29,7 +29,7 @@ public:
private slots:
void handleNewConnection();
void handleNewInput();
- void handleNewInputLine(QString data);
+ void handleNewInputLine(QLocalSocket * client, QString data);
void handleProcessFinished(int exitCode, QProcess::ExitStatus exitStatus);
void handleProcessStarted();
void handleClientDisconnect();
@@ -49,6 +49,7 @@ private:
//QMap<QString, int> indexToIfaceNameMap;
QMap<QLocalSocket *, QLocalSocket *> clients;
QLocalSocket * client;
+ QMap<QString, QLocalSocket*> ifNameToClient;
QMap<QProcess*, QString> clientProcessToIfNameMap;
QString pathToDhcpcdExe;
QStringList dhcpcdArguments;