netsukuku/src/Ntk-Console/Netsukuku-Console.h

36 lines
654 B
C
Raw Normal View History

#ifndef NETSUKUKUCONSOLE_H
#define NETSUKUKUCONSOLE_H
#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>
#define SERVER_PATH "/tmp/ntk-console"
#define BUFFER_LENGTH 250
#define VERSION_STR "0.0.2"
#define FALSE 0
int sockfd = -1, sockfd1 = -1;
struct sockaddr_un serveraddr;
int rc, bytesReceived;
time_t rawtime;
struct tm *timeinfo;
int uptime_sec;
int uptime_min;
int uptime_hour;
int uptime_day;
int uptime_month;
int uptime_year;
int i;
#endif /*NETSUKUKUCONSOLE_H*/