/*********************************************************
*
* Module Name: UDP Echo client/server header file
*
* File Name:    UDPEcho.h	
*
* Summary:
*  This file contains common stuff for the client and server
*
* Revisions:
*
* $A1 : 12/3/2017   initial support for mode 2
*
*********************************************************/
#ifndef	__UDPEcho_h
#define	__UDPEcho_h
#include "common.h" 
#include "sessionManager.h"
#include "messages.h"


#define MsgHdrSize 16
#define DATAMsgHdrSize 20
#define ACKMsgSize 18

extern char Version[];

//defines max mesg size - needs to be a bit larger than possible max message
#define MAX_DATA_BUFFER 64128 


//LIMITS on user param
#define MESSAGEMIN 0
#define MESSAGEMAX 64000

#define MAX_MSG_HDR 128 

#define ERROR_LIMIT 5

//Set to a max of 1 Gbps
#define MAX_SENDING_RATE 1000000000

//possible reasonCodes for exitProcessing
//  remember exit(1) is in error...
//     the better way: exit(EXIT_FAILURE)
#define  MAIN_SUCCESS_EXIT 1
#define  MAIN_ERROR_EXIT 2
#define  CNTC_EXIT 3

//Defines the timeout
#define TIMEOUT 2 



#endif

