The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
client and server programs JCR High Level Programming 8 04-28-2009 04:06 PM
AjaXplorer simplifies browser-based server filesystem interaction iBot UNIX and Linux RSS News 0 03-12-2008 03:30 PM
Client/Server Issue geauxtn AIX 5 07-30-2007 08:38 AM
client/server bole UNIX for Dummies Questions & Answers 2 10-30-2006 02:19 AM
ntp server and ntp client bubba112557 SUN Solaris 1 05-10-2005 10:37 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-16-2005
zmanultra zmanultra is offline
Registered User
  
 

Join Date: Oct 2005
Posts: 2
Arrow client server interaction? anyone know

hi there, i need help 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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:12 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0