title: custom ping command c++ mingw
body: <p><strong>What i want to do:</strong></p>
  <p>Make a simple ICMP ping function in c++ mingw to check if the machines on my network respond and are online. Returns true or false.</p>
  <p><strong>What i tried:</strong></p>
  <p>I was successful in making quite an advanced ping function and class using SFML network module. It works fine but unfortunately <em>needs</em> a port to connect. And some of the machines on the network dont have any ports open or all have different ports open. ICMP ping would be the best to counter this i think as it doesnt need the port.</p>
  <p>I looked online for solutions and found a lot of forums talking about sockets and such, but none of them (due to differences between mingw and gcc) work for mingw (it apparenty lacks the libs or something). That being said i tried making my own socket library but that also failed due to the same lib missing reasons. I wasnt even able to start.</p>
  <p><strong>Conclusion:</strong></p>
  <p>So in the end im left back at square one not knowing where to go from here. Any suggestions?</p>