title: How to get the tcp window size of a socket in linux?
body: <p>Is there a way in linux c api to get the incoming window size of your tcp socket?  </p>
  
  <p>To be clear, by incoming I mean from the perspective of my linux server.
  It seems that the SND and RCV values in linux in my accepted socket are flipped, i.e. RCV means from the server to the client.
  In this case I need the client to server side, which is SND.</p>
  
  <p><code>SND_BUF</code> and <code>RCV_BUF</code> seem unrelated to the actual value that is sent,
  and <code>TCP_WINDOW_CLAMP</code> isn't accurate.</p>