I need advice: Converting the book code from Berkeley Sockets to WinSock

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • I need advice: Converting the book code from Berkeley Sockets to WinSock

      I am in my last semester of a game design program, and I need to network my final project using WinSock. I have read the Network Programming chapter, and the similarities between Winsock and Berkeley are uncanny. I knew that Winsock was based on Berkeley, but it makes me a little nervous.

      So my question is, is there anything that I need to be wary of as I convert from one to the other?
    • I could have sworn up and down the book WAS using WinSock. Hold on sec. Let me go get my copy.
      Mr.Mike
      Author, Programmer, Brewer, Patriot
    • Indeed.

      #include <Winsock2.h>

      The book already uses WinSock - so feel free to refer to the NetSocket class if you like.
      Mr.Mike
      Author, Programmer, Brewer, Patriot