title: How to get maximum TCP Receive/Send window in MAC OS X?
body: <p>How to get maximum TCP Receive/Send window  in MAC OS X?</p>
  
  <p>There are two ctl in Linux.
  /proc/sys/net/core/rmem_max - Maximum TCP Receive Window  (NET_CORE_RMEM_MAX)
  /proc/sys/net/core/wmem_max - Maximum TCP Send Window     (NET_CORE_WMEM_MAX)</p>
  
  <p>but i couldn't find how to get these parameters in mac os. </p>
  
  <p>Does anybody know? </p>
  
  <p>I have found the following ctls in MAC OS X:
  net.inet.tcp.recvspace, net.inet.tcp.sendspace, kern.ipc.maxsockbuf</p>
  
  <p>It seems that recvspace+sendspace can't be greater than maxsockbuf. 
  I have read about it here:
  <a href="http://www.macgeekery.com/tips/configuration/mac_os_x_network_tuning_guide_revisited" rel="noreferrer">http://www.macgeekery.com/tips/configuration/mac_os_x_network_tuning_guide_revisited</a></p>