title: Specifying UDP receive buffer size at runtime in Linux
body: <p>In Linux, one can specify the system's default receive buffer size for network packets, say UDP, using the following commands:</p>
  
  <pre><code>sysctl -w net.core.rmem_max=&lt;value&gt;
  sysctl -w net.core.rmem_default=&lt;value&gt;
  </code></pre>
  
  <p>But I wonder, is it possible for an application (say, in <code>c</code>) to override system's defaults by specifying the receive buffer size per UDP socket in runtime?</p>