Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

Assignment - Chat Client/Server System

Project Details:

In this assignment students will explore basic socket programming, threading and GUI design using Java's network library, threading system, and swing user interface libraries to implement a basic chat client and server system. The system will allow multiple, remote users to send and receive messages across the network. On receiving a send message from a client the server component will broadcast the message to the other clients connected to the server. Consequently, the server component must be multithreaded so as to coordinate communications between the client systems.

Part A - Basic Requirements:

The basic requirements of this assignment are to implement the client and server components as discussed above. The basic protocol of the system is described below:

The operations of the client are:
• SEND_SERVER_MESG: send a basic text message to the server
• RECV_ SERVER_MESG: receive text from the server

The operations of the server are:
• RECV_CLIENT_MESG: receive text from a client
• BROADCAST_MESG: broadcast a text message received from a client to all the other clients connected to the server.

The server component should be multithreaded, and new threads should be allocated and de-allocated when clients connect and disconnect from the server. These threads can be thought of as connection handlers which manage a client socket and input, output streams. To keep track of these handlers some sort of dynamic data structure such as a vector or similar data structure can be used to coordinate access to these message handlers. The client component should be implemented as a GUI interface, and should allow users to enter text messages, display broadcast messages from the server, and send messages using a send button.

The diagram below reflects a typical implementation:

714_img.png

Part B - Extensions:

Basic implementation of the assignment requirements will result in only a passing grade or credit result. To get a distinction or high distinction mark several extensions are possible and include:

1) Client registration (text file based, rather than database based, including username and password)

2) Private messaging between users.

3) Blocking messages from specific users.

4) File or image transfer options.

5) Statistics functions for management at the server side (such as current users, total users, average time online, etc.).

6) Algorithms for efficient thread management.

Java, Programming

  • Category:- Java
  • Reference No.:- M91596878
  • Price:- $40

Priced at Now at $40, Verified Solution

Have any Question?


Related Questions in Java

Chatbotscreate a small networked chat application that is

Chatbots Create a small, networked chat application that is populated by bots. Introduction On an old server park, filled with applications from the early days of the internet, a few servers still run one of the earliest ...

Project requirementsfor the problem described in the next

Project requirements For the problem described in the next section, you must do the following: 1. include your student ID at the end of all filenames for all java code files. Three classes have been identified in section ...

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

Assessment database and multithread programmingtasktask 1

Assessment: Database and Multithread Programming Task Task 1: Grade Processing University grading system maintains a database called "GradeProcessing" that contains number of tables to store, retrieve and manipulate stud ...

Question slideshows or carousels are very popular in

Question : Slideshows (or carousels) are very popular in websites. They allow web developers to display news or images on the website in limited space. In this code challenge, you are required to complete the JavaScript ...

Part a specification - robot simulationpart a

PART A Specification - Robot Simulation PART A Requirements To complete this assignment you will use the supplied eclipse project Robot P1/. It is already set up to execute a simple arm movement loop which you will build ...

Assessment -java program using array of Assessment -JAVA Program using array of objects

Assessment -JAVA Program using array of objects Objectives This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details For this assignment, you are required to develop a Windowed G ...

Can someone kindly help me to consider whether java

Can someone kindly help me to consider whether Java provides the facility of operator overloading? If it does, may you kindly describe how overloading operators can be accomplished? If not, may you kindly describe why yo ...

Assignment taskwrite a java console application that allows

Assignment task Write a java console application that allows the user to read, validate, store, display, sort and search data such as flight departure city (String), flight number (integer), flight distance (integer), fl ...

Assignment - java program using array of objectsobjectives

Assignment - JAVA Program using array of objects Objectives - This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details - For this assignment, you are required to develop a Menu ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As