#include<ctype.h>
#include<sys/socket.h>
#include<netinet/in.h>
#include<sys/types.h>
#include<sys/errno.h>
#include<arpa/inet.h>
#include<sys/un.h>
#include<fcntl.h>
#include<netdb.h>
#include<signal.h>
#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<string.h>
#include<time.h>
#include<sys/time.h>
#include<iostream.h>
#define
MAXSIZE 128
#define SERV_PORT 7777
typedef struct{
int msg_length;
int option; // 1 for encryp, 2 for decrypt
char key;
char
msg[MAXSIZE+1];
} MESSAGE;