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.
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.
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?
|