Port the client packet handler to the new network API