comparison dds.h @ 258:5296f3bcd160

Implement DDS clients reconnect On network send() failures try to reconnect to the server before returning an error. This allows to restart the network servers controlling the DDSes wiothout having to restart the clients.
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Tue, 16 Jun 2015 14:31:35 +0200
parents fcc988c6f841
children
comparison
equal deleted inserted replaced
257:8cbfce046d41 258:5296f3bcd160
1 #ifndef __FXANALYSE_DDS_H__ 1 #ifndef __FXANALYSE_DDS_H__
2 #define __FXANALYSE_DDS_H__ 2 #define __FXANALYSE_DDS_H__
3
4 #define usleep(t) Delay((t) / 1000000.0)
5 #define strdup(s) StrDup(s)
6
7 3
8 typedef long long int64; 4 typedef long long int64;
9 typedef unsigned long long uint64; 5 typedef unsigned long long uint64;
10 6
11 static inline uint64 ftw(double clock, double freq) 7 static inline uint64 ftw(double clock, double freq)
27 if (*end != '\0') 23 if (*end != '\0')
28 return -1; 24 return -1;
29 return 0; 25 return 0;
30 } 26 }
31 27
32 int msend(int fd, char *buffer, int n);
33 int mrecv(int fd, char *buffer, int len);
34 int command(int fd, char *frmt, ...);
35
36 #endif 28 #endif
37 29