/* hexnet.h */

#ifndef HEXNET_H
#define HEXNET_H

#define _GNU_SOURCE

#define MAXINBUFSIZE  500   // Empfangspuffer

#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <ctype.h>
#include <netdb.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <unistd.h>

#include "cmdline.h"

/*******************************************************************************
  Globals
*******************************************************************************/
int debug;



/*******************************************************************************
  Functions
*******************************************************************************/
unsigned char convert(char thisbyte);
// Primitive ASCCII to int conversion of a single byte
// Returns the converted byte

int inputwd(unsigned char *puffer, int maxnum);
// Read input and eliminate everything except 0..9, A..F, and a..f
// If ok, return number of data bytes, "-1" else.
// puffer is a pointer to a preallocated buffer



#endif  // HEXNET_H
