Application: Getroute
Description: It takes a neighborhood as an input from the user. Then it makes a query to the Web Server of www.portauthority.org. From the reply, it extracts the bus numbers of the buses going to the neighborhood. These numbers are then displayed on the web page.
It also allows the user to see a list of neighborhoods. This list is maintained by the web server.
Implementation overview: The application performs the desired actions using TCP sockets. It makes a request using GET or POST method, and sending the query on a TCP socket. The reply from the server is stored in a file, which is read to extract the information.