diff core/UdpServer.cpp @ 135:e77e2e712fbc ClockSync

To work with the ClockSync plugin
author Giulio Moro <giuliomoro@yahoo.it>
date Sat, 12 Sep 2015 20:05:55 +0100
parents ff28e56e5b7e
children 134bff10e561
line wrap: on
line diff
--- a/core/UdpServer.cpp	Thu Aug 27 03:33:32 2015 +0100
+++ b/core/UdpServer.cpp	Sat Sep 12 20:05:55 2015 +0100
@@ -4,7 +4,7 @@
  *  Created on: 19 May 2015
  *      Author: giulio moro
  */
-#include "../include/UdpServer.h"
+#include "UdpServer.h"
 
 UdpServer::UdpServer(int aPort){
 	init(aPort);
@@ -29,6 +29,7 @@
 	enabled=bindToPort(aPort);
 	wasteBufferSize=2048;
 	wasteBuffer=malloc(wasteBufferSize);
+  memset(&stTimeOut,0,sizeof(struct timeval));
 	return enabled;
 }