Buf fix for TCPClient and TCPServer