text: #ifndef COMMS_H
  
  #define COMMS_H
  #include <string.h>
  #include <stropts.h>
  #include <fcntl.h>
  #include <limits.h>
  #include <sys/types.h>
  #include <sys/stat.h>
  #include <sys/ioctl.h>
  #include <stdio.h>
  #include <stdlib.h>
  #include <unistd.h>
  #include <stdbool.h>
  #include "utils.h"
  
  
  #define SIGNAL 0
  #define SENDER 1
  #define MAX_TOKENS 10
  #define DFT_TRIES  7
  #define WAIT_TIME  10000
  #define MAX_BUFFER 4096
  #define MSG_CHUNKSIZE "chunksize"
  #define MSG_ENCRYPT   "encrypt"
  #define MSG_COMPRESS  "compress"
  #define MSG_METHOD    "method"
  #define MSG_LS        "ls"
  #define MSG_STATUS    "status"
  #define MSG_UPLD      "upload"
  #define MSG_DONE      "done"
  #define MSG_UPLD_E    "eupload"
  #define MSG_UPLD_C    "cupload"
  #define MSG_DOWNLD    "download"
  #define MSG_EXIT      "bye"
  #define MSG_ARRIVE    "hello"
  
  /* messages should follow format "what;pid" */
  void send_message(const char *pipe_name, char *msg, bool do_unlink);
  char **wait_message(const char *pipe_name, int tries);
  
  #endif /* ifndef COMMS_H */
  