Fixed an issue where not the entire send packet will be sent.

Fixed an issue where very large data would not be completly send.
Changed sendpacket returntype to unsigned int
Use return value of sendpacket
Merge pull request #29 from Thywin/HotFix-SendPacket

Hot fix send packet