Port the server packet handler to the new API