#define MAX_ETH_BUFFER 64 // maximum length we read in one go from a TCP packet. Anything longer in one go send to the Arduino may result in unpredictable behaviour.
// idealy the windowsize should be set accordingly so that the sender knows to produce only max 250 size packets.
#define MAX_OVERFLOW MAX_ETH_BUFFER / 2 // length of the overflow buffer to be used for a given connection.
#define MAX_JMRI_CMD 32 // MAX Length of a JMRI Command
typedefenum
{
DCCEX,// if char[0] = < opening bracket the client should be a JMRI / DCC EX client_h
WITHROTTLE,//
HTTP,// If char[0] = G || P || D; if P then char [1] = U || O || A
N_DIAG,// '#' send form a telnet client as FIRST message will then reroute all DIAG messages to that client whilst being able to send jmri type commands