Sponsored Content
Top Forums Programming client server interaction? anyone know Post 86591 by zmanultra on Sunday 16th of October 2005 08:48:34 AM
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
 

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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 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

7. 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

8. 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

9. 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
FAXSTATE(8)						      System Manager's Manual						       FAXSTATE(8)

NAME
faxstate - control ``modem state'' of a device used by HylaFAX SYNOPSIS
/usr/sbin/faxstate [ -q queue-dir ] [ -s state ] [ -n ] modem DESCRIPTION
faxstate sends a message to the HylaFAX faxgetty(8) process servicing modem telling it to use the specified state when notifying the HylaFAX scheduler that a modem is ready and available for use. This is useful for controlling outbound use of a modem; by marking a modem's state as busy or down the HylaFAX scheduler will not assign any outbound jobs to the modem. The specified modem can either be the name (typically the last component of the terminal port the modem is attached to), or the full name of the associated FIFO named pipe file, e.g. ``FIFO.ttym2''. If the -n option, faxstate emulates what faxgetty would do; sending a message directly to the faxq process marking the specified modem down, busy, or ready. This interface is useful for send-only environments in which faxgetty processes are not used. Note that modems manipulated in this way must previously have been configured with the faxmodem(8) program. OPTIONS
The following options are supported: -n Contact faxq directly instead of faxgetty. -q dir Use a spooling area other than /var/spool/hylafax. -s Specify the state to send the faxq process each time the modem becomes ready for use; one of ``busy'', ``down'', and ``ready''. The default state to use is ready. FILES
Consult hylafax-server(5) for a complete discussion of the structure and content of the spooling area. SEE ALSO
hylafax-server(5), faxgetty(8) July 17, 1995 FAXSTATE(8)
All times are GMT -4. The time now is 06:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy