title: How can I use sys/socket.h on Windows?
body: <p>I made a server with C using socket on a Linux machine and it's working fine but when I tried to run it on windows machine using visual studio, I'm getting an error:</p>
  <blockquote>
  <p>fatal error C1083: Cannot open include file: 'sys/socket.h': No such
  file or directory</p>
  </blockquote>
  <p>The ide telling me that this header files are not found.</p>
  <pre><code>#include &lt;sys/socket.h&gt;
  #include &lt;netinet/in.h&gt;
  #include &lt;arpa/inet.h&gt;
  #include &lt;unistd.h&gt;
  </code></pre>