modify recvbuf and sendbuf codes