The Australian National University Department of Computer Science
[ANU][FEIT][DCS]

COMP3310 - Lab 6 (2004)

A Real-Time Video Server and Client

Chapter 6 of Kurose and Ross discusses a number of issues dealing with multimedia applications working over Internet Protocols.

Look at the programming assignment at the end of Chapter 6 (page 601). We are implementing a Real Time Protocol (RTP) and Real Time Streaming Protocol (RTSP) client and server to move JPG images across the network. RTSP runs over RTP, which, in turn, runs over UDP.

Look at the Java code available from the Kurose and Ross web site (http://www.awl.com/kurose-ross) and follow the instructions and hints there to implement the RTSP in the client and RTP in the server sides of your application.

Note that the Java class file RTPPacket.java is calling a method "unsigned_int". This method has not been defined. What it is trying to do is convert a byte (which is a signed 8-bit quantity in Java) into a 32-bit integer with a range of 0 - 255. One way to do this is to simply "mask" the bottom 8-bits with an AND operation (& 0xff) which will result in a 32-bit integer in the correct range. Another way is to test if the value of the byte is less than 0 and to add 256 to it if so - eg. -1 => 255, -10 => 246 etc.

The files for this exercise can be found locally here

top of page
Author: R. Edwards: Phone: +61 2 612 54090; Fax +61 2 612 50010
Feedback: Please direct comments about this page to: Bob.Edwards@cs.anu.edu.au
Last Modified: