00001
#ifndef IFWTOOL_H
00002
#define IFWTOOL_H
00003
00004
00005
00006
00007
00017
00018
00019
00020
00021 #define DEFAULT_MYID "IFW"
00022 #define DEFAULT_MYPORT 10701
00023 #define DEFAULT_RCFILE "/home/darkstar/dts/Config/ifwtool.ini"
00024 #define DEFAULT_LOGFILE "/home/darkstar/dts/Logs/ifwtool.log"
00025
00026
00027
00028 #define DEFAULT_ISISID "IS"
00029 #define DEFAULT_ISISHOST "localhost"
00030 #define DEFAULT_ISISPORT 6600
00031
00032
00033
00034
00035
00036
00037
00038
00039
#include <stdio.h>
00040
#include <string.h>
00041
#include <stdlib.h>
00042
#include <unistd.h>
00043
#include <errno.h>
00044
#include <sys/time.h>
00045
#include <sys/times.h>
00046
#include <sys/types.h>
00047
#include <sys/socket.h>
00048
#include <sys/file.h>
00049
#include <netdb.h>
00050
#include <netinet/in.h>
00051
#include <arpa/inet.h>
00052
#include <time.h>
00053
#include <termios.h>
00054
#include <fcntl.h>
00055
#include <signal.h>
00056
00057
00058
00059
00060
#ifndef APP_VERSION
00061 #define APP_VERSION "1.0 Beta"
00062
#endif
00063
00064
#ifndef APP_COMPDATE
00065 #define APP_COMPDATE "2004-01-01"
00066
#endif
00067
00068
#ifndef APP_COMPTIME
00069 #define APP_COMPTIME "00:00:00"
00070
#endif
00071
00072
00073
00074
#include "isisclient.h"
00075
00076 extern isisclient_t
client;
00077
00078
00079
00080
00081
00082
00107 typedef struct ifw_pars
00108 {
00109 char Port[64];
00110 int FD;
00111 long timeout;
00112 char Name[64];
00113 int Debug;
00114 }
ifwheel_t;
00115
00116 extern ifwheel_t ifw;
00117
00118
00119
00120
00121
00122
00123
int LoadConfig(
char *);
00124
void KeyboardCommand(
char *);
00125
void SocketCommand(
char *);
00126
00127
void handleint(
int);
00128
00129
#endif // CLIENT_H