Question
$10.00 solution for java Assignment 5.
- From Computer-Science: General-CS , Computer-Science: General-CS
- Due on Jul. 09, 2112
- Asked on Jul. 06, 2012 at 10:48:08AM
Q:
solution for java Assignment 5.
i need full assignment.
A:
Preview: ... he session ID returned in the SETUP response. You must not put the Transport header in this request.
Read server's response.
Note: You must insert the CSeq header in every request you send . The value of the CSeq header is a number which is incremented by one for each request you send.
Example
Here is a sample interaction between the client and server. The client's requestes are marked with C: and server's replies with S:. In this lab both the client and the server are very simple . They do not have sophisticated parsing routines and they expect the header fields to be in the order you see below . That is, in a request, the first header is CSeq, and the second one is either Transport (for SETUP) or Session (for all other requests). In the reply, CSeq is again the first and Session is the second.
C: SETUP movie.Mjpeg RTSP/1.0
C: CSeq: 1
C: Transport: RTP/UDP; client_port= 25000
S: RTSP/1.0 200 OK
S: CSeq: 1
S: Session: 123456
C: PLAY movie.Mjpeg RTSP/1.0
C: CSeq: 2
C: Session: 123456
S: RTSP/1.0 200 OK
S: CSeq: 2
S: Session: 123456
C: PAUSE movie.Mjpeg RTSP/1.0
C: CSeq: 3
C: Session: 123456
S: RTSP/1.0 200 OK
S: CSeq: 3
S: Session: 123456
C: PLAY movie.Mjpeg RTSP/1.0
C: CSeq: 4
C: Session: 123456
S: RTSP/1.0 200 OK
S: CSeq: 4
S: Session: 123456
C: TEARDOWN movie.Mjpeg RTSP/1.0
C: CSeq: 5
C: Session: 123456
S: RTSP/1.0 200 OK
S: CSeq: 5
S: Session: 123456
Client State
One of the key differences between HTTP and RTSP is that in RTSP each session has a state. In this lab you will need to keep the client's state up-to-date. Client changes state when it receives a reply from the server according to the following state diagram.
2. Server
On the server you will need to implement the packetization of the video data into RTP packets. For this you will need to create the packet, set the fields in the packet header, and copy the payload (i.e., one video frame) into the packet.
When the server receives the PLAY-request from the client, it starts a timer which is triggered every 100 ms. At these times the server will read one video frame from the file and send it to the client. The server creates an RTPpacket-object which is the RTP-encapsulation of the video frame.
The server calls the first constructor of the class RTPpacket to perform the encapsulation. Your task is to write this function. You will need to do the following: (the letters in parenthesis refer to the fields in the RTP packet format below)
Set t ...
Attachments:
WA5-sol.ps (122K)
The full tutorial is about 2349 words long plus attachments.

Attachments:
WA5-sol.ps (122K)
A:
Preview: ... ensive program for applying mathematics. You can use Solution to make different mathematical operations and analyze the results.
Solution is a comprehensive program for applying mathematics. You can use Solution to make differen ...
The full tutorial is about 154 words long .