the include file arpa/inet.h had been missing, which caused the strange integer to pointer without cast error message and the crashes related to memcpy FIXED