Tcp shared buffer implementation