title: getting socket header files
body: <p>I'm new to C/C++ and I'm using it to learn the Socket API. As I was made aware, I need to include certain socket header files to be able to use the built-in functions. </p>
  
  <pre><code>#include &lt;sys/socket.h&gt; // Needed for socket creating and binding
  #include &lt;netinet/in.h&gt; // Needed to use struct sockaddr_in
  </code></pre>
  
  <p>This is what I put at the top of my main.cpp class, and CLion says it "cannot find socket.h". I've searched for "socket header download" across the internet, but many forums say it should come with whatever C files I already have by default. I installed Cygwin yesterday as my C compiler. Do I just have to reinstall it, find some socket API packages, then reinstall CLion to use socket functions? If so, what are the packages called?</p>