-
Winsock help in C
Hi all,
Im trying to make a skeleton client server programme using winsock. What i want to do is set the server to listen on port 55555 and then for the client to connect to it with this port and IP address 127.0.0.1 I then want to client to send the string hi and the server to print the string recieved from the client. Thanks for any help :)
Oh and I dont want the programmes to exit then, i want them to stay connected. Thanks
-
-
-
Beej's guide is a good intro to Network programming for C programmers, but it is aimed towards Unix-based systems. It doesn't cover winsock.h in great detail. Once you've read the first few chapters of Beej's Guide (which should be all you'll need) go to Google and look for some winsock specific code. The differences are not huge, but they're there. Beej does mention some of the biggest ones.