Using sys/socket.h functions on windows
Posted
by BSchlinker
on Stack Overflow
See other posts from Stack Overflow
or by BSchlinker
Published on 2010-06-01T19:37:17Z
Indexed on
2010/06/01
19:43 UTC
Read the original article
Hit count: 266
Hello,
I'm attempting to utilize the socket.h functions within Windows. Essentially, I'm currently looking at the sample code at http://beej.us/guide/bgnet/output/html/multipage/clientserver.html#datagram. I understand that socket.h is a Unix function -- is there anyway I can easily emulate that environment while compiling this sample code? Does a different IDE / compiler change anything?
Otherwise, I imagine that I need to utilize a virtualized Linux environment, which may be best anyways as the code will most likely be running in a UNIX environment.
Thanks.
© Stack Overflow or respective owner