cas is always part of the header. Use own htonll on Windows, stupid non portable api (have to valid other OSes like BSD