Originally Posted by
safwa_man
Can anyone help me with below scenario,
university wants to simplify the registration procedure by
taking advantage of the new emerging technology and replace the stand-alone application with a
client server application. The new students can receive CD 's containing the client application
and a multi-threaded server application will be hosted on the university server.
Both, client and server should communicate using the sockets API. Each time the client connects
to the server, the students can fill the necessary information (name, surname, birth date, telephone number , mail address) a
message (contains this information ) is sent to the server . The message should have the
in following format:
name\tsurname\tbirth year\ttelephone\tnumber\tmail address.
Once the server receives a message, it starts a new thread in order to save the received data in a
tab limited text file (one line per student). You might have many
threads running concurrently trying to write data in the text file, therefore writing to the text file
should be a serialized task.
Instead of saving the data in a file the data should be sent as a
message using sockets API to the university server.