title: Porting Winsock to Linux Sockets
body: <p>I have a program that does some networking using Winsock, and one of our requirements right now is to port over our program to Linux. The only thing stopping us from doing this is Winsock. </p>
  
  <p>My question is: How easy can I port this over to a Linux implementation?</p>
  
  <p>Are there any pitfalls I should be aware of, and if I simply include the appropriate header files, what sort of things will I have to be sure to handle?</p>
  
  <p>Thanks for any help!</p>
  
  <p>I'd post code but I can't unfortunately due to legal reasons.
  But, our code does use the following:</p>
  
  <pre><code>WSAStartup(..)
  WSACleanup(..)
  Socket(..)
  sendto(..)
  recvfrom(..)
  ioctlsocket(..)
  setsocketopt(..)
  </code></pre>