Write a JAVA program that would facilitate text chatting/exchanging between two or multiple computers over the network/internet, using the concept of JAVA socket programming. If you do not have any network environment, you can run on a single machine by instantiating your program multiple times. E.g. you can have program1 and program 2 running on same machine exchanging texts between themselves.
Rationale
This assignment is designed to asses following learning outcomes:
be able to write programs that would communicate with another program running in the network;
be able to deconstruct/analyse the object-oriented features of a Java program;
Marking criteria
Items
Full marks
PS
CR (CR+)
DI (CR+)
HD (DI+)
Presentation
10
Very basic presentation
(no screen shots are
included)
Report with few screen shots is submitted
Report with enough screen shots is submitted
Report with enough screen shots is submitted. The discussion on each screen shot is easy to read and understand.
Graphical User Interface
20
Interfaces for ithe clients/servers are not done properly
Interfaces for the clients/servers are done properly with necessary components.
Texts being exchanged between both parties
30
Partially done. E.g. the socket is created but other parts are not working
Connection established but texts are not exchanged
Connection established and texts are being exchanged both way
Working perfectly and the interface is user friendly
Last Completed Projects
| topic title | academic level | Writer | delivered |
|---|
jQuery(document).ready(function($) { var currentPage = 1; // Initialize current page
function reloadLatestPosts() { // Perform AJAX request $.ajax({ url: lpr_ajax.ajax_url, type: 'post', data: { action: 'lpr_get_latest_posts', paged: currentPage // Send current page number to server }, success: function(response) { // Clear existing content of the container $('#lpr-posts-container').empty();
// Append new posts and fade in $('#lpr-posts-container').append(response).hide().fadeIn('slow');
// Increment current page for next pagination currentPage++; }, error: function(xhr, status, error) { console.error('AJAX request error:', error); } }); }
// Initially load latest posts reloadLatestPosts();
// Example of subsequent reloads setInterval(function() { reloadLatestPosts(); }, 7000); // Reload every 7 seconds });

