Recent Changes - Search:

Network Programming

This website demonstrates using wikis as teaching and learning tool.

The course instructor is happy to share the teaching materials here with those who find it readable.

Course Assessment for Academic Year 2009-2010

Course assessment components

  • 20 class quiz after each lecture (20%)
  • 2 network programming assignments across two semesters (20%)
  • 1 mid-term test (10%)
  • 1 final examination (50%).

Assignment One (Due date: January 19, 2010)

Task One: Write a Java socket program to delete all emails from a POP3 server

Background: Steven uses Netvigator as the Internet Service Provider. The service includes an email account like xxxxx@netvigator.com. Such an email service has quota limit and will charge extra cost if the usage exceed the quota limit. Steven does not use the email service. However, the email account suffers from spam messages. Therefore, Steven needs to login to the account to delete the emails from time to time, which is meaningless and annoying.

Your taks: Write a Java program that use sockets and streams to delete all email messages of an email account that uses POP3.

Task Two: Write a Java server program to test TCP clients

Background: You have learned how to use Telnet to experiment with TCP servers such as HTTP, SMTP, and POP3. However, there is no program in your PC to test TCP clients.

Your tasks: Write a Java server program that use sockets and streams to show all data sent by the client.

Please see the detailed description about your programming tasks and submission requirements: here.


Assignment Two (Due date: March 30, 2010)

Introduction: There are a number of photo-sharing web services that enables users to upload hundreds of photos and embed each photo with various information such as descriptive words and geographical data. This assignment is about making use of these useful resources to do something useful and interesting.

Your tasks: Develop a program in any languages you like (Java, PHP, JavaScript) that meets the following requirements.

  • It access the Web Services APIs of one or more photo-sharing websites to search photos.
  • Function One: It accepts a pair of latitude and longitude (e.g. '22.275250,114.180397') and finds the recent photos that were taken around that particular area.
  • Function Two: It accepts an address (e.g. '香港銅鑼灣怡和街28號' ) and finds the recent photos that were taken around that particular area.
  • Function Three: It accepts a place name (e.g. '香港公開大學' ) and finds the recent photos that were taken around that particular area.
  • It displays the following information in each photo: the photo in small size (such as 75 by 75 pixels), the author, the link to the original photo.

Edit - History - Print - Recent Changes - Search
Page last modified on February 04, 2010, at 10:56 AM