modify socket packet format.