![]() |
| | #1 | |
| wise_ron Join Date: May 2006
Posts: 75
| Server and Client process 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 Quote:
| |
| wise_ron is offline | |
| | #2 |
| and the hat of Jobseeking Join Date: Aug 2001 Location: The edge of the known universe
Posts: 21,676
| 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. |
| Salem is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| server client application - (i really need your help) | sarahnetworking | C Programming | 3 | 03-01-2008 10:54 PM |
| c program client server | steve1_rm | Networking/Device Communication | 3 | 01-24-2008 10:33 AM |
| Where's the EPIPE signal? | marc.andrysco | Networking/Device Communication | 0 | 12-23-2006 08:04 PM |
| TCP/IP client & echo server | Jordban | C++ Programming | 2 | 06-06-2005 06:39 PM |
| Unicode vurses Non Unicode client server application with winsock2 query? | dp_76 | Networking/Device Communication | 0 | 05-16-2005 07:26 AM |