COP5615-Project2_01-Summer2010

COP5615-Project2_01-Summer2010 - COP5615 Distributed...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
COP5615 Distributed Systems Fall 2010 Computer and Information Science and Engineering University of Florida Project 2 document version 0.1 Date Assigned: June 16 2010 Due: July 1, 11:59 pm 1 Introduction In this project, you will extend the functionality of project 1. You are required to implement a server who can handle multiple clients using multi-threading. In addition, we should be able to run different instances of the server. The rest of functions required to implement your server and client are identical to those for project 1 except handling of the LATER message (its format does not change but the actions the server should take will change), and new SHUTDOWN, OK, RESTART and WILLDO messages. LATER: This message is sent by the child thread to the remote client upon receipt of a BYE message. After sending this message the child thread should close the socket connection and terminate itself. Do not terminate the server or close the socket connection on which the main thread is listening. Its format does not change from what specified in Project 1. SHUTDOWN: Upon receipt of this message the server shall respond with an OK message, then prepare to terminate itself and close the socket connection on which it is listening. It shall wait until all child threads have terminated before doing this, and it shall not accept any further new clients. PROTOCOL FORMAT: SHUTDOWN \ n PROTOCOL ELEMENT: SHUTDOWN - constant of type String PROTOCOL CASE-SENSITIVITY: CASE-INSENSITIVE PROTOCOL LINE-DELIMITER: SINGLE NEW LINE CHARACTER OK: Upon receipt of a SHUTDOWN message the server shall respond to the client with an OK message. PROTOCOL FORMAT: OK \ n PROTOCOL ELEMENT: OK - constant of type String PROTOCOL CASE-SENSITIVITY: CASE-INSENSITIVE PROTOCOL
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
LINE-DELIMITER: SINGLE NEW LINE CHARACTER RESTART: Upon receipt of this message the server shall respond to the client with a WILLDO message. Then disconnect all connections. PROTOCOL FORMAT: RESTART \ n PROTOCOL ELEMENT: RESTART - constant of type String PROTOCOL CASE-SENSITIVITY: CASE-INSENSITIVE PROTOCOL LINE-DELIMITER: SINGLE NEW LINE CHARACTER WILLDO: Upon receipt of a RESTART message the server shall respond to the client with a WILLDO message. It should then try to reconnect to the server. PROTOCOL FORMAT: WILLDO \ n PROTOCOL ELEMENT: WILLDO - constant of type String PROTOCOL CASE-SENSITIVITY: CASE-INSENSITIVE PROTOCOL LINE-DELIMITER: SINGLE NEW LINE CHARACTER 2 Server The server shall process messages according to the specification of Project 1. Note that if a message is received with too few or too many arguments, the server must issue an ERROR message in response. Unlike the server implementation of the project 1, which can only process a single client at
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/22/2012 for the course COP 5615 taught by Professor Staff during the Fall '08 term at University of Florida.

Page1 / 5

COP5615-Project2_01-Summer2010 - COP5615 Distributed...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online