Mercurial > hg > fxanalyse
diff 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 |
line wrap: on
line diff
--- a/dds.h Fri Jun 05 21:51:25 2015 +0200 +++ b/dds.h Tue Jun 16 14:31:35 2015 +0200 @@ -1,10 +1,6 @@ #ifndef __FXANALYSE_DDS_H__ #define __FXANALYSE_DDS_H__ -#define usleep(t) Delay((t) / 1000000.0) -#define strdup(s) StrDup(s) - - typedef long long int64; typedef unsigned long long uint64; @@ -29,9 +25,5 @@ return 0; } -int msend(int fd, char *buffer, int n); -int mrecv(int fd, char *buffer, int len); -int command(int fd, char *frmt, ...); - #endif