#ifndef _NET_H_INCLUDED
#define _NET_H_INCLUDED

#include <stdio.h>
#include <stdlib.h>     /* atoi, exit, EXIT_SUCCESS */
#include <string.h>
#include <unistd.h>     /* fork */
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <sys/errno.h>
#include <sys/types.h>  /* pid_t */
#include <sys/wait.h>   /* WIFEXITED, WEXITSTATUS */

#define SERV_PORT 	9877
#define MAXLINE 	4096
#define LISTENQ		1024
#define SA			const struct sockAddr
#define EVER		; true ;

enum {DOWN, UP};

typedef struct {
	double available;
	double used;
	double average;
} STATES;

typedef struct {
	int no_of_process;
	STATES cpu_usage;
	STATES mem_usage;
	STATES swp_usage;
	double delay;
} WORKLOAD;

class Host{
public:
	char name[32];
	char ip[16];
	int status;
	
	Host(const char *n, const char *i) {
		strcpy(name, n);
		strcpy(ip, i);
		status= UP;
	}
};
	

#endif
