code: public void init(SocketChannel s)
    {
      _s = s;
  
      try {
        s.setOption(StandardSocketOptions.TCP_NODELAY, true);
      } catch (Exception e) {
        e.printStackTrace();;
      }
      //_is = null;
      //_os = null;
      _needsFlush = false;
      
      _readBuffer.clear().flip();
      _writeBuffer.clear();
    }
docs: Initialize the SocketStream with a new Socket.
  
  @param s the new socket.