design and implement a simplified tracking and chatting system

Κλειστό Αναρτήθηκε Mar 25, 2016 Πληρώθηκε κατά την παράδοση
Κλειστό Πληρώθηκε κατά την παράδοση

The server program will serve client requests and maintain all the below mentioned information about

each active client in a linked list. (Note that Java RMI automatically uses multiple threads to process

requests originating from different clients.)

Each client will connect to the server and register itself by reporting its initial (x,y) location along with

other information such as name, age etc. The server will assign a unique ID to each client and send this ID

to the client. The client program should be able to get the short messages that might be sent by other

clients (peers) and print them on the screen. So the client program should also register the additional

information that makes this possible to the server and server should maintain that information too.

After the registration step, the server program will wait for clients’ requests and accordingly respond to

them. A client's main thread can make the following requests (which are entered by the user running the

client program):

1. go -50 30 : client wants to go 50m South and 30m East, server updates the location

and reports the new location (go 40 -20 means go 40m North and 20m West)

2. get location : client wants to know its current (x,y) location, server reports the current

location of this client

3. list 30 : client wants to get the list of users within 30m, server determines such

clients/users within 30m of requesting client and send their information (user-id, name, age,

additional info) to the client, client keeps that list in a linked list and prints their user-id,

name, and age on the screen

4. send user-id msg : client sends msg directly to user-id. Server not involved here.

5. quit : client leaves the system, server takes it out from the list

Clearly, there will be some shared resource at the server and/or client so you need to protect them and

implement necessary synchronization mechanisms.

Run the rmiregistry and server program on hostA as follows:

hostA\> rmiregistry [port] &

hostA\> java server &

Run each clients on different hosts as follows:

anyhost\> java client –SH hostA -N name -L x y –A age

Java

Ταυτότητα Εργασίας: #10048033

Σχετικά με την εργασία

4 προτάσεις Απομακρυσμένη εργασία Ενεργό Πριν 7 χρόνια

4 freelancers κάνουν προσφορές κατά μέσο όρο $106 για αυτή τη δουλειά

xeathprynx

Hello, i am expert in java/c/c++ and i can deliver any task in least time and least payments. The code will be well commented and well formatted for better understanding. I believe in long term relations so first che Περισσότερα

$100 USD σε 2 μέρες
(81 Αξιολογήσεις)
5.3
anuragiitk

I am an IITK graduate, 9 year experienced software professional and I have got top notch developers in my team, who have got experience across a span of technologies. The members in my team have worked with top notch t Περισσότερα

$222 USD σε 1 μέρα
(21 Αξιολογήσεις)
5.4
Atanu0103

A proposal has not yet been provided

$45 USD σε 10 μέρες
(0 Αξιολογήσεις)
0.0