2014-06-02 07:14:19 +00:00
|
|
|
#ifndef NETSUKUKUCONSOLE_H
|
|
|
|
#define NETSUKUKUCONSOLE_H
|
|
|
|
|
2014-06-05 02:41:12 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/socket.h>
|
|
|
|
#include <utmp.h>
|
|
|
|
#include <sys/un.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <time.h>
|
|
|
|
#include <errno.h>
|
|
|
|
|
2014-06-03 17:55:39 +00:00
|
|
|
#define SERVER_PATH "/tmp/ntk-console"
|
2014-08-16 05:51:54 +00:00
|
|
|
#define BUFFER_LENGTH 250
|
2014-08-04 07:04:46 +00:00
|
|
|
#define VERSION_STR "0.0.2"
|
2014-06-03 05:06:48 +00:00
|
|
|
#define FALSE 0
|
|
|
|
|
2014-08-16 05:51:54 +00:00
|
|
|
int sockfd = -1, sockfd1 = -1;
|
2014-06-05 02:41:12 +00:00
|
|
|
struct sockaddr_un serveraddr;
|
2014-08-16 05:51:54 +00:00
|
|
|
int rc, bytesReceived;
|
2014-06-05 02:41:12 +00:00
|
|
|
|
|
|
|
time_t rawtime;
|
|
|
|
struct tm *timeinfo;
|
|
|
|
|
|
|
|
int uptime_sec;
|
|
|
|
int uptime_min;
|
|
|
|
int uptime_hour;
|
|
|
|
int uptime_day;
|
|
|
|
int uptime_month;
|
|
|
|
int uptime_year;
|
|
|
|
|
2014-06-07 11:52:30 +00:00
|
|
|
int i;
|
2014-06-05 02:41:12 +00:00
|
|
|
|
2014-06-02 07:14:19 +00:00
|
|
|
#endif /*NETSUKUKUCONSOLE_H*/
|