Flash XML socket protocol implementation for ranch