00001
#ifndef CLIENT_H
00002
#define CLIENT_H
00003
00004
00005
00006
00007
00021
00022
00023
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
00031
00032 #define DEFAULT_ISISID "IS"
00033 #define DEFAULT_ISISHOST "darkstar"
00034 #define DEFAULT_ISISPORT 6600
00035
00036
00037
00038
00039
00040
00041
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
00062
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
00077
00078
#include "isisclient.h"
00079
00080 extern isisclient_t
client;
00081
00082
00083
00084
00085
00086
00087
#include "siutils.h"
00088
#include "mechanism.h"
00089
00090 extern si_mechanism_t
fw;
00091 extern si_drivepars_t
fwpar;
00092
00093
00094
00095 extern int beamoff;
00096 extern int loadoff;
00097
00098
00099
00100
00101
00102
00103
int LoadConfig(
char *);
00104
void KeyboardCommand(
char *);
00105
void SocketCommand(
char *);
00106
00107
00108
00109
void HandleInt(
int);
00110
void abortall(
void);
00111
00112
#endif // CLIENT_H