Networking Coursework – A Location Server
Networking Coursework – Client, Server, Sever Log and Storage XML File
Recently I’ve been working a lot on my coursework for the 08246 module, Networking and Web Technologies, which consists of producing a client and server for a system which stores information on the location of people at The University. The client allows the user to type in commands such as the following:
And the server will return a response telling the user
Danny is in the ITMB Computer Labratory
The client can also update the position of someone on the server using the following Syntax
location Danny "In the Library"
The client and server can talk to each other over 4 different protocols.
- Whois, which is usually used to query information about a domain name on the internet.
- HTTP 0.9 – A deprecated form of the Hyper Text Transfer Protocol, the protocol used to deliver webpages, images and other media and files from websites.
- HTTP 1.0 – A newer version of HTTP
- HTTP 1.1 – The latest version of HTTP
The server saves the locations of all the users when it is updated, and stores a log detailing all the connections which have been made to it. At the moment the server is single-threaded and can only accept one connection at once. However I am currently working on making it multi-threaded, so that multiple clients can connect to the sever at the same time.
The coursework is in two parts. This first part requires just a command line interface and simple storage/logging. However part two will require me to update it to have a full working website and SQL Database backend. I will, of course, keep this blog updated with my progress.