changed DataTypes to uintX_t, uintXX_t for reliable size. Fixed RecvLoop.

changed DataTypes to uint8_t, uint16_t, uint32_t and uint64_t wherever
necessary unsigned long, int , short are deprecated now for reliable
size. Fixed RecvLoop.