socket readheader