| 17 |
|
|
| 18 |
#include <stdio.h> |
#include <stdio.h> |
| 19 |
#include <time.h> |
#include <time.h> |
| 20 |
|
#include <ctype.h> |
| 21 |
#include <unistd.h> |
#include <unistd.h> |
| 22 |
|
#include <signal.h> |
| 23 |
#include <sys/param.h> |
#include <sys/param.h> |
| 24 |
#include <sys/types.h> |
#include <sys/types.h> |
| 25 |
#include <sys/stat.h> |
#include <sys/stat.h> |
| 26 |
#include <sys/socket.h> |
#include <sys/socket.h> |
| 27 |
#include <netinet/in.h> |
#include <netinet/in.h> |
| 28 |
#include <netdb.h> |
#include <netdb.h> |
| 29 |
|
#include <mysql.h> |
| 30 |
|
|
| 31 |
|
//Version |
| 32 |
|
extern char app_version[256]; |
| 33 |
|
|
| 34 |
|
//Enviroment |
| 35 |
extern char app_home_dir[256]; |
extern char app_home_dir[256]; |
| 36 |
|
|
| 37 |
|
//Network |
| 38 |
extern int socket_server; |
extern int socket_server; |
| 39 |
extern int socket_client; |
extern int socket_client; |
| 40 |
extern char hostaddr_server[50]; |
extern char hostaddr_server[50]; |
| 41 |
extern char hostaddr_client[50]; |
extern char hostaddr_client[50]; |
| 42 |
extern int port_server; |
extern int port_server; |
| 43 |
extern int port_client; |
extern int port_client; |
| 44 |
|
|
| 45 |
|
//Database |
| 46 |
|
extern char DB_host[256]; |
| 47 |
|
extern char DB_username[50]; |
| 48 |
|
extern char DB_password[50]; |
| 49 |
|
extern char DB_database[50]; |