#ifndef _TECS_CLI_H_ #define _TECS_CLI_H_ #include "coc_client.h" /* tecc.h: tecs client interface routines M. Zolliker March 2000 ------------------------------------------------------------------------*/ typedef CocConn *pTecsClient; pTecsClient TeccInit(char *server, int port); /* init tecs client (connect to server) ------------------------------------------------------------------------*/ int TeccGet(pTecsClient conn, float *temp); /* set temperature ------------------------------------------------------------------------*/ int TeccSet(pTecsClient conn, float temp); /* get temperature ------------------------------------------------------------------------*/ char *TeccGetPar(pTecsClient conn, const char *name); /* get any parameter from tecs ------------------------------------------------------------------------*/ int TeccSetPar(pTecsClient conn, const char *name, const char *value); /* set any parameter of tecs ------------------------------------------------------------------------*/ int TeccWait(pTecsClient conn); /* wait until the controller is configured ------------------------------------------------------------------------*/ int TeccSend(pTecsClient conn, char *cmd, char *reply, int replyLen); /* send a command transparently to the controller replyLen is the maximal length of reply ------------------------------------------------------------------------*/ void TeccClose(pTecsClient conn); /* close connection and free ressources ------------------------------------------------------------------------*/ int TeccKillServer(pTecsClient conn); /* kill the server process ------------------------------------------------------------------------*/ #endif /* _TECS_CLI_H_ */