Read an incoming xinet package.
Read an incoming xinet package. A new buffer is allocated to hold an entire message conforming to the xipacket structure. On little-endian platforms, the header data is converted to local format.The buffer must be freed after use.