gelobi.blogg.se

Clicktime play 2
Clicktime play 2






clicktime play 2

The client will take two (2) command line parameters: hostname and port number. Immediately commence the shutdown procedure even if there are currently connected clients. When the server receives a SIGINT, it is to To deal elegantly with any threads that have been created as well as any open sockets,ĭynamically allocated memory and/or open files. Implement a signal handler and ensure the server exits cleanly. SIGINT is a type of signal found on POSIX systems and in the LinuxĮnvironment this means ctrl+c has been pressed at the server terminal. Way that the server is to exit is upon receiving a SIGINT from the operating system (an The server should not be able to take any input from the terminal once it is running. This file should be located in the same directory as the server binary file. A file named Authentication.txt contains the names and the passwords of all The server is responsible for ensuring only registered clients of the system can play The following command will run the server If no port number is supplied theĭefault port of 12345 is to be used by the server. Parameter that indicates which port the server is to listen on. The server will take only one command line Same directory as the server binary file. The server will automatically load the hangman_text.txt file which is to be located in the The programs (clients and server) are to run in a terminal reading input from thekeyboard and writing output to the screen. The client and server will be implemented in the C programming language using BSDsockets on the Linux operating system. Words which are both used in a single game of Hangman. beach, place) – each line in the text file represents a pair of The information stored in this text file is in theįorm of object, object type (e.g. Have insisted that this list is not to be changed. If the clientįails to guess all the letters within the number of turns provided the client loses the game.Īll the words that are to be used in the game have been provided by the company and they If theĬlient guesses all the letters before running out of turns the client wins the game. Number of turns the client receives is proportional to the length of the two word phrase. The client has a number of turns in which to guess all the letters in the two-word phrase. If the client selects a correct letter the letter should then appear in all The word phrase is represented by a row of dashes representing each letter of the word In the game of Hangman the server randomly selects a two-word phrase from a given textįile. The company wishes to offer to theirĬurrent clients the game of Hangman, which is a word guessing game. To expand their current offerings to registered clients. You have been commissioned to develop a client/server system for an online games provider Process Management and Distributed Computing Task 1: Client-Server Computing








Clicktime play 2