[feature] reimpl the socket snd_head and rcv_head