Presentation is loading. Please wait.

Presentation is loading. Please wait.

Assignment 1 tutorial. Assignment 1 Programming part: – Socket programming: a chat room application – Individual assignment – Deadline 20 th Oct 2015.

Similar presentations


Presentation on theme: "Assignment 1 tutorial. Assignment 1 Programming part: – Socket programming: a chat room application – Individual assignment – Deadline 20 th Oct 2015."— Presentation transcript:

1 Assignment 1 tutorial

2 Assignment 1 Programming part: – Socket programming: a chat room application – Individual assignment – Deadline 20 th Oct 2015 Theory test: – MC questions on OLAT – Will be released next week. – Deadline 20 th Oct 2015

3 Programming part The chat room: – A server: Spawn a new thread for each new client. Receive and store all messages from producer clients. When a new listener client comes, it first sends all stored message to the client and keeps the client updated. – A producer: Identify to server, it is a “PRODUCER” Read a file and send to the server line by line, until read “.bye” – A listener: Identify to server, it is a “LISTENER” Output all message from the server.

4 How to start Download the assignment folder from OLAT Skeleton code are provided (you can directly import to Eclipse) Study socket programming in Java. Must be in TCP protocol Messages must be encoded by UTF-8

5 IDE Event Log Before you start, please follow an online tutorial http://www.cs.cmu.edu/~fluorite/howtouse.html and install an event logger. (<=5 minutes) http://www.cs.cmu.edu/~fluorite/howtouse.html Event logger will record every step you do during coding. After you finish your assignment. You need to follow the same tutorial, zip all the logs, and submit a zip file that contains all the logs to OLAT.

6 How to evaluate In the assignment folder, we provided the “test_script” The “test_script” woks on Mac OSX. You can use the student lab. If you are using your own Linux machine, you need to modify the “test_script” a bit. (details are in the description on OLAT)

7 What to Submit Export as a jar file, with your OLAT username. E.g., “sgao.jar” MUST include the source code. Event log zip file: “sgao.zip” OLAT forum. Email. Where to get help

8 Score assignment Assignment 1 (13 points) (10% of the total course) – Socket programming part. (9 points) Server 5, Producer 2, and Listener 2. – Event log files (2 points) – Theory test. (MC question on OLAT) (2 points)


Download ppt "Assignment 1 tutorial. Assignment 1 Programming part: – Socket programming: a chat room application – Individual assignment – Deadline 20 th Oct 2015."

Similar presentations


Ads by Google