Mercurial > hg > fxanalyse
comparison ad9956.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 | c700a2d38fb8 |
children |
comparison
equal
deleted
inserted
replaced
257:8cbfce046d41 | 258:5296f3bcd160 |
---|---|
1 #ifndef __AD9956_H__ | 1 #ifndef __AD9956_H__ |
2 #define __AD9956_H__ | 2 #define __AD9956_H__ |
3 | |
4 #include "xsocket.h" | |
3 | 5 |
4 #define REVISION 1 | 6 #define REVISION 1 |
5 | 7 |
6 struct ad9956 { | 8 struct ad9956 { |
7 char *hostname; | 9 struct xsocket *sock; |
8 int port; | |
9 int profile; | 10 int profile; |
10 int fd; | 11 int fd; |
11 double clock; | 12 double clock; |
12 double frequency; | 13 double frequency; |
13 }; | 14 }; |