| 15 |
* * |
* * |
| 16 |
***************************************************************************/ |
***************************************************************************/ |
| 17 |
|
|
| 18 |
#include <stdio.h> |
//Version |
| 19 |
#include <time.h> |
extern char app_version[256]; |
|
#include <unistd.h> |
|
|
#include <sys/param.h> |
|
|
#include <sys/types.h> |
|
|
#include <sys/stat.h> |
|
|
#include <sys/socket.h> |
|
|
#include <netinet/in.h> |
|
|
#include <netdb.h> |
|
|
|
|
| 20 |
|
|
| 21 |
|
//Enviroment |
| 22 |
extern char app_home_dir[256]; |
extern char app_home_dir[256]; |
| 23 |
|
extern char app_temp_dir[256]; |
| 24 |
|
|
| 25 |
|
//Network |
| 26 |
extern int socket_server; |
extern int socket_server; |
| 27 |
extern int socket_client; |
extern int socket_client; |
| 28 |
extern char hostaddr_server[50]; |
extern char hostaddr_server[50]; |
| 29 |
extern char hostaddr_client[50]; |
extern char hostaddr_client[50]; |
| 30 |
extern int port_server; |
extern int port_server; |
| 31 |
extern int port_client; |
extern int port_client; |
| 32 |
|
|
| 33 |
|
//Database |
| 34 |
|
extern char DB_host[256]; |
| 35 |
|
extern char DB_username[50]; |
| 36 |
|
extern char DB_password[50]; |
| 37 |
|
extern char DB_database[50]; |