Initial commit.

This commit is contained in:
matzman
2014-06-16 11:22:51 +02:00
commit ae0b6fdcd0
27 changed files with 1685 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
/*
* main.cpp
*
* Created on: 10.06.2014
* Author: matzman
*/
#include <TfCPPsimple.h>
#include "GrowControl.h"
#include "IPCManager.h"
#include <unistd.h>
#include <iostream>
#include <sstream>
#include <string>
using namespace tfcppsimple;
using namespace growcontrol;
#define HOST "localhost"
#define PORT 4223
GrowControl controller;
IPCManager ipcManager;
int main(int argc, char **argv) {
TfUtils::configureLog4CPP("log4cpp.config");
controller.connect(HOST, PORT);
sleep(2);
try {
ipcManager.init(controller, "/tmp/growcontrol.socket");
} catch (GCException &e) {
}
controller.mainLoop();
}