changeset 175:e5ad3ed47d2c

Code cleanup
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Fri, 21 Feb 2014 18:38:44 +0100
parents d96f0b04f7fe
children 6ccc428c412a
files DDS_Fox.c
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/DDS_Fox.c	Fri Feb 21 18:37:32 2014 +0100
+++ b/DDS_Fox.c	Fri Feb 21 18:38:44 2014 +0100
@@ -309,10 +309,6 @@
 
 static unsigned int timeout = 0; // milliseconds
 
-int OnTCPEvent(unsigned handle, int xType, int errCode, void *callbackData)
-{
-	return 0;
-}
 
 static int SendCmd(char *Buffer, DDSParameter *Param)
 {
@@ -321,7 +317,7 @@
 #ifdef DEBUG
 	fprintf(stderr, "> %s\n", Buffer);
 #endif
-	if (ConnectToTCPServer (&hConv, Param->Port, Param->ip, OnTCPEvent, Response, timeout) < 0) {
+	if (ConnectToTCPServer (&hConv, Param->Port, Param->ip, NULL, NULL, timeout) < 0) {
 		error("Connect failed");
 		return -1;
 	}
@@ -352,7 +348,7 @@
 #ifdef DEBUG
 	fprintf(stderr, "> %s\n", Buffer);
 #endif
-	if (ConnectToTCPServer (&hConv, Param->Port, Param->ip, OnTCPEvent, Response, timeout) < 0) {
+	if (ConnectToTCPServer (&hConv, Param->Port, Param->ip, NULL, NULL, timeout) < 0) {
 		error("Connect failed");
 		return -1;     
 	}