Changed sendpacket returntype to unsigned int