Main Page | Data Structures | File List | Data Fields | Globals

client.h

Go to the documentation of this file.
00001 #ifndef CLIENT_H 00002 #define CLIENT_H 00003 00004 // 00005 // client.h - Custom client application header 00006 // 00007 00021 // Various site-dependent but system-independent default values 00022 00023 // Default client application values (override/set in loadconfig.c) 00024 00025 #define DEFAULT_MYID "FW" 00026 #define DEFAULT_MYPORT 6101 00027 #define DEFAULT_RCFILE "/home/darkstar/dts/Config/fwheel.ini" 00028 #define DEFAULT_LOGFILE "/home/darkstar/dts/Logs/fwheel.log" 00029 00030 // Default ISIS server information (see loadconfig.c if used) 00031 00032 #define DEFAULT_ISISID "IS" 00033 #define DEFAULT_ISISHOST "darkstar" 00034 #define DEFAULT_ISISPORT 6600 00035 00036 // 00037 // END of Site-Dependent Setup 00038 // 00039 //---------------------------------------------------------------- 00040 00041 // System header files 00042 00043 #include <stdio.h> 00044 #include <string.h> 00045 #include <stdlib.h> 00046 #include <unistd.h> 00047 #include <errno.h> 00048 #include <sys/time.h> 00049 #include <sys/times.h> 00050 #include <sys/types.h> 00051 #include <sys/socket.h> 00052 #include <sys/file.h> 00053 #include <netdb.h> 00054 #include <netinet/in.h> 00055 #include <arpa/inet.h> 00056 #include <time.h> 00057 #include <termios.h> 00058 #include <fcntl.h> 00059 #include <signal.h> 00060 00061 // In case the version and compilation data are not defined 00062 // at compilation, put in some placeholders to prevent code barfing 00063 00064 #ifndef APP_VERSION 00065 #define APP_VERSION "1.0 Beta" 00066 #endif 00067 00068 #ifndef APP_COMPDATE 00069 #define APP_COMPDATE "2004-01-01" 00070 #endif 00071 00072 #ifndef APP_COMPTIME 00073 #define APP_COMPTIME "00:00:00" 00074 #endif 00075 00076 // ISIS common client utilties library header 00077 00078 #include "isisclient.h" // should be in -I path in Makefile, no paths here! 00079 00080 extern isisclient_t client; 00081 00082 //--------------------------------------------------------------------------- 00083 // 00084 // Mechanisms for this application 00085 // 00086 00087 #include "siutils.h" // SCLUtils API header 00088 #include "mechanism.h" // Mechanism API (part of SCLUtils) 00089 00090 extern si_mechanism_t fw; 00091 extern si_drivepars_t fwpar; 00092 00093 // Additional filter wheel globals 00094 00095 extern int beamoff; //<! beam position offset 00096 extern int loadoff; //<! load position offset 00097 00098 //---------------------------------------------------------------- 00099 // 00100 // Custom client application function prototypes 00101 // 00102 00103 int LoadConfig(char *); // Load/parse the agent runtime config file (see loadconfig.c) 00104 void KeyboardCommand(char *); // process keyboard (cli) commands (see commands.c) 00105 void SocketCommand(char *); // process client UDP socket commands/messages (see commands.c) 00106 00107 // Signal Handlers 00108 00109 void HandleInt(int); // SIGINT handler 00110 void abortall(void); // abort all moves 00111 00112 #endif // CLIENT_H

Generated on Thu Jul 22 19:58:41 2004 for Filter Wheel Agent by doxygen 1.3.7