mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-06 18:10:40 +02:00
some small unimportant changes such as removign eiger header structure form generic socket and initializign differentlclients
This commit is contained in:
parent
995f28ca52
commit
6600d82fc7
@ -93,12 +93,7 @@ enum communicationProtocol{
|
|||||||
UDP /**< UDP */
|
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) :
|
genericSocket(const char* const host_ip_or_name, unsigned short int const port_number, communicationProtocol p, int ps = DEFAULT_PACKET_SIZE) :
|
||||||
// portno(port_number),
|
// portno(port_number),
|
||||||
@ -120,6 +115,7 @@ typedef struct
|
|||||||
strcpy(lastClientIP,"none");
|
strcpy(lastClientIP,"none");
|
||||||
strcpy(thisClientIP,"none1");
|
strcpy(thisClientIP,"none1");
|
||||||
strcpy(dummyClientIP,"dummy");
|
strcpy(dummyClientIP,"dummy");
|
||||||
|
differentClients = 0;
|
||||||
|
|
||||||
struct hostent *hostInfo = gethostbyname(host_ip_or_name);
|
struct hostent *hostInfo = gethostbyname(host_ip_or_name);
|
||||||
if (hostInfo == NULL){
|
if (hostInfo == NULL){
|
||||||
@ -184,6 +180,7 @@ typedef struct
|
|||||||
strcpy(lastClientIP,"none");
|
strcpy(lastClientIP,"none");
|
||||||
strcpy(thisClientIP,"none1");
|
strcpy(thisClientIP,"none1");
|
||||||
strcpy(dummyClientIP,"dummy");
|
strcpy(dummyClientIP,"dummy");
|
||||||
|
differentClients = 0;
|
||||||
|
|
||||||
if(serverAddress.sin_port == htons(port_number)){
|
if(serverAddress.sin_port == htons(port_number)){
|
||||||
socketDescriptor = -10;
|
socketDescriptor = -10;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user