Thread: Server and Client process

  1. #1
    wise_ron wise_ron's Avatar
    Join Date
    May 2006
    Posts
    75

    Server and Client process

    Can some one give me some hints in how to solve this program. How can i communicate with the server? If you have anylinks or refence that will be helpfull feel free to tell me.

    Thanks for your help it will be appreciate it!

    Code:
    Program:
    The Client will randomly generate some text and send it to the Server
    the Server will then echo the text to all Clients including the name of 
    the Client sending the message. This will then be displayed by each of 
    the Clients that are attached to the Server.
    Server should continuously loop and accept messages from Clients
    and then echo them. Each client gets a unique name which will be passed to
    the server at the time when the connection is established.
    
    Run one server and ten clients for at least 100 distinct messages from all clients.
    
    Typical output may look like:
    Client1 sends: abba
    Client3 receives: From Client1: abba
    Client4 receives: From Client1: abba
    etc... 
    
    or... if you wish...
    Client1 sends: abba
    Client3 receives: Client1> abba
    Client4 receives: Client1> abba
    etc...
    
    (remember that more than one message may pile up on one client; therefore, you need
    to allow a queue for each client... similarily, for the server)
    Wise_ron
    One man's constant is another man's variable

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    We have a whole board just for network programming (which this thread is now in).
    The "sticky" threads at the top of the forum have much information, look through some of 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. server client application - (i really need your help)
    By sarahnetworking in forum C Programming
    Replies: 3
    Last Post: 03-01-2008, 10:54 PM
  2. c program client server
    By steve1_rm in forum Networking/Device Communication
    Replies: 3
    Last Post: 01-24-2008, 10:33 AM
  3. Where's the EPIPE signal?
    By marc.andrysco in forum Networking/Device Communication
    Replies: 0
    Last Post: 12-23-2006, 08:04 PM
  4. TCP/IP client & echo server
    By Jordban in forum C++ Programming
    Replies: 2
    Last Post: 06-06-2005, 06:39 PM
  5. Unicode vurses Non Unicode client server application with winsock2 query?
    By dp_76 in forum Networking/Device Communication
    Replies: 0
    Last Post: 05-16-2005, 07:26 AM