Thread: help with socket programming!

  1. #1
    Registered User
    Join Date
    Dec 2010
    Posts
    3

    help with socket programming!

    please give me links to good references on how to write a client-server program in c

    where

    1) the server waits for clients to connect to it until a certain number of clients is reached; and
    2) then the server starts to wait for a connected client to send a request and then sends back data in the form of a string...

    thanks...

  2. #2
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    On what operating system?

  3. #3
    Registered User spygg's Avatar
    Join Date
    Dec 2010
    Location
    Chengdu China
    Posts
    2
    you can search it on google ,There are lots of examples on baidu but it write in Chinese i'm afraid that you can't understand them ....

  4. #4
    Programming King Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Middle of NoWhere
    Posts
    320
    1
    2
    Try any of above 2 and one more thing....

    I hope you can also google it out... Why don't you put a try over it???
    Instead of leaving everything over others, it's much better to do yourself hard first.
    I don't care if someone doesn't like me, i was not put on earth to entertain everyone.

    No King, no Queen, I am the ACE of battle.

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Not forgetting the "beej network tutorial" (google it).
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. little help in simple socket library
    By SIFE in forum Networking/Device Communication
    Replies: 1
    Last Post: 12-31-2010, 11:01 PM
  2. Why the local socket program occur core dump?
    By chenayang in forum Linux Programming
    Replies: 16
    Last Post: 08-16-2010, 08:39 AM
  3. Function call from another .c module
    By Ali.B in forum C Programming
    Replies: 14
    Last Post: 08-03-2009, 11:45 AM
  4. Problem with socket descriptors
    By McKracken in forum C Programming
    Replies: 1
    Last Post: 07-22-2009, 08:51 AM
  5. socket newbie, losing a few chars from server to client
    By registering in forum Linux Programming
    Replies: 2
    Last Post: 06-07-2003, 11:48 AM

Tags for this Thread