In the application the trickiest part was the implementation of the action files associated with IC1 and IC2. They have been implemented using TCP sockets.
Implementation of IC 2:
Uses TCP sockets to connect to the www.portauthority.org web server at port number 80.
Once a connection is established, it sends a GET method request for the web page www.portauthority.org/ride/pgSchedules.asp .
The Server replies with the web page requested. This page contains the list of neighborhoods. Which is extracted on user's request.
Implementation of IC 1:
If user request action 1, then a POST method is sent for the www.portauthority.org/ride/psResultsDistrict.asp, with a parameter neighborhood.
The server replies with a list of bus numbers and their route maps (pdf files).
The list is extracted and displayed.