client server interaction? anyone know


 
Thread Tools Search this Thread
Top Forums Programming client server interaction? anyone know
# 1  
Old 10-16-2005
CPU & Memory client server interaction? anyone know

hi there, i need help Smilie im trying to produce a program that would do the following, but i dont know were to begin, any help/guide lines, please im need help asap,

One program is the main program, which fork/execs one referee process and
three x,y,z processes repectvley. It then waits until all four processes terminate. It should check that the command-line parameter that specifies the number of turns is legal and pass it to the referee process as a parameter of exec().

The parent program is the server which listens for choices from the x,y,z
program on a socket. The protocol used is as follow: when a process (x,y,z) is ready to make a choice it sends the string “READY” to the server. When all of them are ready, the server sends the processs a string “GO AHEAD” at roughly the same time. The responses from the players are read and their scores are calculated an updated(The choices and result of each game is displayed on the console). If correct response is not received from a player within two seconds, the server will resend the “READY” string to that process. If a correct response is again not received within 2 seconds after the second reminder, the other processes will be awarded the winning point for that game. This process should be repeated until the number of turns has been reached. After the final turn, the server send the “STOP” message to terminate the process and Display the final score.

thanks for ur help in advance Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sftp script for dev server to client server

hi, i am new to unix, cuold u send some sftp acripts to send files to dev server to clint server, (1 Reply)
Discussion started by: Koti.annam
1 Replies

2. Programming

Client Server programming

Hi Could someone give me some advise, basically i am learning UDP client server programming. I understand how to do send and receive between client server ( learn from this site Sending and Receiving Packets) but things such as MSN can actually send and receive at the same time! I believe it... (1 Reply)
Discussion started by: GQiang
1 Replies

3. UNIX for Dummies Questions & Answers

Client server C

Hello, Please, is there on unix.com the source code of a client C and server C: as shown in following figure: File:InternetSocketBasicDiagram zhtw.png - Wikipedia, the free encyclopedia Thank you so much for help (1 Reply)
Discussion started by: chercheur857
1 Replies

4. Programming

Client Server C

Hello, Please I would create a client and a server in C that communicate frequently. The client sends "hello message" to the server, the server waits a few minutes and sends a "hello message" to the client, the client sends again "hello server ".. etc up to 15 minutes Can you guide me... (3 Replies)
Discussion started by: chercheur857
3 Replies

5. Windows & DOS: Issues & Discussions

Office server => laptop =>client server ...a lengthy and laborious ftp procedure

Hi All, I need your expertise in finding a way to solve my problem.Please excuse if this is not the right forum to ask this question and guide me to the correct forum,if possible. I am a DBA and on a daily basis i have to ftp huge dump files from my company server to my laptop and then... (3 Replies)
Discussion started by: kunwar
3 Replies

6. Programming

Client/Server Socket Application - Preventing Client from quitting on server crash

Problem - Linux Client/Server Socket Application: Preventing Client from quitting on server crash Hi, I am writing a Linux socket Server and Client using TCP protocol on Ubuntu 9.04 x64. I am having problem trying to implement a scenario where the client should keep running even when the... (2 Replies)
Discussion started by: varun.nagpaal
2 Replies

7. Shell Programming and Scripting

Client-server

Hi, I have installed the vmware server on my debian os and has several clients connected to it. Is there any script that enable the server to restart the client automatically?? Can anyone help. Thanks in advance (3 Replies)
Discussion started by: kanexxx
3 Replies

8. UNIX and Linux Applications

server/client performance

Ello group, I have general question about how the performance of server/client should be? My server is able to answer about 650times per second. Is it good performance? the apache on the same machine makes 1600/sec BUT there is nine instances of httpd daemon what makes 180/ sec /instance. of... (1 Reply)
Discussion started by: tomjan
1 Replies

9. UNIX for Dummies Questions & Answers

client/server

Hi, yes i belong to that duummies group of people so here is the question that i need someone to explain it to me and posiblly to answere it to me in a plain english. This is the question: Describe the concept of “client-server” software. Discuss what each side of the equation... (2 Replies)
Discussion started by: bole
2 Replies
Login or Register to Ask a Question