From 6600d82fc7f3700d77a6c13ceeb5c4dd1a1d46e1 Mon Sep 17 00:00:00 2001 From: Dhanya Maliakal Date: Thu, 19 Nov 2015 11:18:35 +0100 Subject: [PATCH] some small unimportant changes such as removign eiger header structure form generic socket and initializign differentlclients --- slsReceiverSoftware/include/genericSocket.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/slsReceiverSoftware/include/genericSocket.h b/slsReceiverSoftware/include/genericSocket.h index aebdd8066..97cd3223e 100644 --- a/slsReceiverSoftware/include/genericSocket.h +++ b/slsReceiverSoftware/include/genericSocket.h @@ -93,12 +93,7 @@ enum communicationProtocol{ UDP /**< UDP */ }; -typedef struct -{ - unsigned char header_before[20]; - unsigned char fnum[4]; - unsigned char header_after[24]; -} eiger_image_header; + genericSocket(const char* const host_ip_or_name, unsigned short int const port_number, communicationProtocol p, int ps = DEFAULT_PACKET_SIZE) : // portno(port_number), @@ -120,6 +115,7 @@ typedef struct strcpy(lastClientIP,"none"); strcpy(thisClientIP,"none1"); strcpy(dummyClientIP,"dummy"); + differentClients = 0; struct hostent *hostInfo = gethostbyname(host_ip_or_name); if (hostInfo == NULL){ @@ -184,6 +180,7 @@ typedef struct strcpy(lastClientIP,"none"); strcpy(thisClientIP,"none1"); strcpy(dummyClientIP,"dummy"); + differentClients = 0; if(serverAddress.sin_port == htons(port_number)){ socketDescriptor = -10;