PDA

View Full Version : Sockets in Windows prob! (C)


damalo
10-21-2004, 09:16 PM
hi guys,

Working on a simple UDP server on XP. Have to test on XP as i dont have access to a UNIX box from home. Anyways!

Having awful hassle with :

#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>

i understand they are more unix motivated includes but is there anyway i could get this puppy running in windows? Having no probs in unix - just flippin XP


Cheers!
Damalo

i3839
10-21-2004, 09:35 PM
Forget about most of those and just include winsock.h. For more specific info google for "winsock". ;-)

damalo
10-22-2004, 01:08 PM
thanks for that! Never even crossed my mind!