C Board  

Go Back   C Board > General Programming Boards > Networking/Device Communication

Reply
 
LinkBack Thread Tools Display Modes
Old 10-07-2006, 12:53 AM   #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
Quote:
One man's constant is another man's variable
wise_ron is offline   Reply With Quote
Old 10-07-2006, 01:11 AM   #2
and the hat of Jobseeking
 
Salem's Avatar
 
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.
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.

Salem is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 03:08 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

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