-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.h
18 lines (17 loc) · 890 Bytes
/
common.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <sys/types.h> /* standard system types */
#include <netinet/in.h> /* Internet address structures */
#include <sys/socket.h> /* socket interface functions */
#include <netdb.h> /* host to IP resolution */
#include <sys/time.h> /* for timeout values */
#include <unistd.h> /* for table size calculations */
#include <string.h>
#include <arpa/inet.h>
#include <stdio.h> /* Basic I/O routines */
#include <qdbm/depot.h> /* QDBM routines */
#include <stdlib.h>
#include <syslog.h>
#define S_PORT 5070 /* port of our server */
#define BUFLEN 256 /* buffer length */
#define IP_DBNAME "/var/spool/notifier/notifyip.db"
#define PORT_DBNAME "/var/spool/notifier/notifyport.db"
#define DASHBOARD_CONF "/etc/dashboard.conf"