title: Sending and receiving std::string over socket
body: <p>I have seen similar question on SO but non answers my question.
  Here I am trying to send and recv string:</p>
  
  <p>I am sending std::string : </p>
  
  <pre><code>if( (bytecount=send(hsock, input_string.c_str(), input_string.length(),0))== -1)
  </code></pre>
  
  <p>Can it be correctly received by this?</p>
  
  <pre><code>if ((bytecount = recv(*csock, rcv.c_str(), rcv.length(), 0)) == -1)
  </code></pre>
  
  <p>I am getting error: </p>
  
  <blockquote>
    <p>error: invalid conversion from ‘const void*’ to ‘void*’ [-fpermissive]` on recv line!</p>
  </blockquote>