Thread: Winsock help in C

  1. #1
    Registered User
    Join Date
    Oct 2004

    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 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

  2. #2
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Ontario, Canada
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  3. #3
    Arggggh DeepFyre's Avatar
    Join Date
    Sep 2004
    Keyboard Not Found! Press any key to continue. . .

  4. #4
    Super Moderator
    Join Date
    Sep 2001
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Winsock issues
    By tjpanda in forum Windows Programming
    Replies: 3
    Last Post: 12-04-2008, 08:32 AM
  2. Winsock Messaging Program
    By Morgul in forum Windows Programming
    Replies: 13
    Last Post: 04-25-2005, 04:00 PM
  3. Winsock - Where do i start?
    By Brain Cell in forum Networking/Device Communication
    Replies: 5
    Last Post: 02-14-2005, 01:39 PM
  4. Where do I initialize Winsock and catch messages for it?
    By Lithorien in forum Windows Programming
    Replies: 10
    Last Post: 12-30-2004, 12:11 PM
  5. winsock
    By pode in forum Networking/Device Communication
    Replies: 2
    Last Post: 09-26-2003, 12:45 AM