Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Standard C Sockets


ghost's Avatar
0 0

Im trying to start coding with sockets, but on windows with codeblocks, my compiler cannot find: #include <sys/socket.h> #include <netinet/in.h> I'd like to do this the unix way, without winsock


ghost's Avatar
0 0

On Windows - you cannot unless you use something like cygwin.

Winsock provides the BSD sockets API and the majority of the calls work the same and will compile on windows/solaris/linux without problem.

However - Winsock can be a PITA, if you don't like it don't do Windows development.


ghost's Avatar
0 0

you can PM me!