Mercurial > hg > fxanalyse
view xsocket.h @ 268:ec4462c7f8b7
Extensive cleanup of beatnote specific variables
Reorganize the beatnote specific variables in arrays indexed by the
beatnote enum constants LO, HG, SR. Also reorganize DDS frequency
related variables in arrays indexed by the DDS channel number.
author | Daniele Nicolodi <daniele.nicolodi@obspm.fr> |
---|---|
date | Thu, 09 Jul 2015 23:11:00 +0200 |
parents | ebbe0f198322 |
children |
line wrap: on
line source
#ifndef __XSOCKET_H__ #define __XSOCKET_H__ #ifdef _CVI_ #include <ansi_c.h> #else #include <stdlib.h> #endif struct xsocket { char *hostname; int port; int fd; }; struct xsocket * xsocket(const char *hostname, const int port); int xconnect(struct xsocket *s); int xsend(struct xsocket *s, const char *data, size_t len); int xrecv(struct xsocket *s, char *buffer, size_t len); int xcommand(struct xsocket *s, const char *frmt, ...); int xask(struct xsocket *s, const char *data, size_t datalen, char *buffer, size_t len); #endif