Changed transport layer to TCP and fixed bugs.

UDP is not supported by DeSmuME.
Fixed bug generating the checksum of the packet (it was not converted
to hexadecimal).
Returns result of write operation.
Supports receiving more than one packet at a time.