Client server chat system

Assignment Help JAVA Programming
Reference no: EM1398312

Project Details:

You will explore basic socket programming, threading and GUI design using Java's network library, threading system, and swing user interlace libraries to implement a basic chat client and saver system. Thc 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 setter components as discussed above. The basic protocol of the system is described below:

The operations of the client arc:

SEND_SERVER_MESG send a basic text message to the sever
RECV_ SERVER MESG: receive text from the server

The operations of the server are:
RECV_CUENT_MESG: receive text from a client
BROADCAST_MF.SG: 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 he thought of as connection handlers which manage a client socket and input, output streams. To keep track of these handlers some son of dynamic data structure such as a vector or similar data structure can he used to coordinate access to these message handlers. The client component should be implemented at a GUI interface, and should allow users to anti text messages, display broadcast messages from the server, and send messages using a send button.

2494_client server chat system.png

Part B

I) Client registration (text file based, rather than database based, including usemarne 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 MSC'S, average time online, etc.).
6) Algorithms for efficient thread management.

Please make sure to include necessary unique comments in your source code and the GUI interfaces in case we have a doubt about the implementation Final marks depend on the quality, creativity and implementation of these extensions.

Reference no: EM1398312

Questions Cloud

Waiting line statistics question : Customers enter the waiting line at a cafeteria on a first-come, first-served basis. The arrival rate follows a Poisson distribution, while service times follow an exponential distribution.
Provide physiological reason for dissatisfaction : You are trying to find a restaurant to take your great grandmother for Mother's Day. You have taken her to several places in town, but she is rarely satisfied with the food she is served, complaining that the food lacks flavor.
Developing a trend line : Develop a trend line for the demand for fertilizer using computer software. Data collected on the yearly demand for 50 pound bags of fertilizer at Wallace Garden Supply are shown in the following table:
What are the potential benefits : what are the potential benefits and the overall risks of genetic engineering? please explain and give exmaples.
Client server chat system : Threading and GUI design using Java's network library, threading system, and swing user interlace libraries to implement a basic chat client and saver system. Thc system will allow multiple. remote users to send and receive messages across the net..
Detemine one un-breakable rule of dramatic writing : Detemine the one un-breakable rule of dramatic writing? When adapting novel to screen, what does screenwriter owe the original material?
Correlation between hours spent in the course : The correlation between hours spent in the course and exam grades is .8. what percent f variation in exam grades can be explained by hours spent in the course?
Explain the main trends in tfr and replacement fr : please explain the main trends in TFR and replacement FR in developed versus devloping countries? How can TFR of the overall human population be lowered.
Predicted value of cricket chirps : Find the best predicted temperature (in degree F) at a time when a cricket chirps 3000 times in one minute. What is wrong with this predicted value?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write java program that writes names to text file

Create an empty text file called myfile.txt. Write a Java program that writes your names to the text file created. If the file does not exist, include an exception handler for that error.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  A jsp expression can contain any java expression

A JSP expression can contain any Java expression that evaluates to a

  Enterprise java beans (ejb) in software development

Enterprise Java Beans (EJB) in software development, EJB technology, EJB application, Stateless Session Beans (SLSB), Stateful Session Beans (SFSB), Message Driven Bean (MDB), Entity Bean

  Mvc pattern and servlet

When you use the MVC pattern, the controller directs the flow of control to

  Socket programming in java: tcp

In this project we will develop a Web server in two steps. In the end, you will have built a multi-threaded Web server that is capable of processing multiple simultaneous service requests in parallel.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Modeling the caves

Assignment 2 Description:  You are a mighty warrior, and armed with your trusty bow and 3 arrows, you enter The Caves in search of the mighty Wumpus. If you shoot the Wumpus, you are victorious and the masses will praise you, but if you stumble upon ..

  Write applet which reads five numbers-draw equivalent stars

Write the applet which reads five numbers (each between 1 and 30). For each number read, your program must design line containing that number of adjacent asterisks.

  Java method that contains code to be executed

Write a short Java method that contains code for which it is probably impossible for that code to ever be executed, but your favorite Java compiler does not detect this fact.

  Please write the code in java

Please write the code in java for  Recursion,  Sorting and Searching

  File integrity checker - tripwire

Write a program that will perform some of the basic tasks accomplished by a file integrity checker such as Tripwire.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd