Implemented the 'packet' class for the client (c) version