Winsock help in C

This is a discussion on Winsock help in C within the Networking/Device Communication forums, part of the General Programming Boards category; Hi all, Im trying to make a skeleton client server programme using winsock. What i want to do is set ...

  1. #1
    Registered User
    Join Date
    Oct 2004
    Posts
    100

    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

  2. #2
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    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
    Posts
    227
    Keyboard Not Found! Press any key to continue. . .

  4. #4
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    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, 07: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, 12: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, 11:11 AM
  5. winsock
    By pode in forum Networking/Device Communication
    Replies: 2
    Last Post: 09-26-2003, 12:45 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21