Results 1 to 2 of 2

Thread: Unix --> windows

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 2000
    Location
    Reykjavík, Iceland
    Posts
    29

    Question Unix --> windows

    I got this c++ writen in unix so that it is full of includes like this

    #include <sys/types.h>
    #include <sys/socket.h>
    #include <sys/wait.h>
    #include <sys/time.h>
    #include <sys/resource.h>
    #include <netinet/in.h>
    #include <unistd.h>
    #include <netdb.h>

    and if I am not mistaken then that are includes from good old unix. Is there way I can move this code to vc++ 6. I rater not want to do this by hand since it is few thousends of lines

    Any ideas?

    Icesoft

  2. #2
    Frenzied Member
    Join Date
    Jul 2002
    Posts
    1,370
    Your more unusual includes are for BSD sockets - like the hostent struct in netdb.h

    Windows has most of that, but not necessarily in the header files you have listed.

    Windows sockets are very much like BSD sockets, and are based on them. There are a few differences. Plus, you need to lose a lot of includes: <winsock.h> does most of it.

    See this thread for a discussion:

    http://www.vbforums.com/showthread.p...hlight=sockets

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width