readtag.c: fix LOG_ levels

re-order to match spec, and so that logging will work correctly
readtag.c: eliminate unnecessary debug output

Only read twice in Connect() if writing
tuxeip: add WSACleanup() calls for win32

MSVC needs io.h for close() in Ethernet_IP.c
Add WSACleanup() calls after close()'s for win32
Initial Clang fixes

-Wundef fix in TuxDef.h
-Wshadow in MR.c, size was already used
-Wdocumentation in ErrCodes.c
CM.c: pointer arithmetic on void* is a GNU extension
More Clang fixes

SendData.h: add extern for -Wmissing-variable-declarations
ErrCodes.c/h: format string for LogCip() should be const
AB.h: add missing enumerations