Initial commit.
This commit is contained in:
@@ -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();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user