<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Right Stationery</TITLE>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 9.00.8112.16441"></HEAD>
<BODY
style="BACKGROUND-COLOR: #e0e0e0; FONT-FAMILY: Arial; COLOR: #000000; FONT-SIZE: 10pt"
background="" bgColor=#e0e0e0>
<DIV><FONT color=#005080 face="Trebuchet MS"><SPAN
class=558462408-29032012>Hi,</SPAN></FONT></DIV>
<DIV><FONT color=#005080 face="Trebuchet MS"><SPAN
class=558462408-29032012></SPAN></FONT> </DIV>
<DIV><FONT color=#005080 face="Trebuchet MS"><SPAN class=558462408-29032012>I am
streaming a file from the server to the client. When the file ends, the
SubsessionByeHandler in my client is called, which in turn calls the
SubsessionAfterPalying in the client. What I want to do is send a teardown
command back to the server at this point, so that the server knows that the file
has reached its end. I had a look at RTSPClient->sendTeardownCommand, but I
am not sure how to specify which function to call in the
server.</SPAN></FONT></DIV>
<DIV><FONT color=#005080 face="Trebuchet MS"><SPAN
class=558462408-29032012></SPAN></FONT> </DIV>
<DIV><FONT color=#005080 face="Trebuchet MS"><SPAN
class=558462408-29032012>My questions :</SPAN></FONT></DIV>
<DIV><FONT color=#005080 face="Trebuchet MS"><SPAN
class=558462408-29032012></SPAN></FONT> </DIV>
<DIV><FONT color=#005080 face="Trebuchet MS"><SPAN
class=558462408-29032012>a) Is RTSPClient->sendTeardownCommand the
correct way to send a teardown to the server? If so, how do I use
it?</SPAN></FONT></DIV>
<DIV><FONT color=#005080 face="Trebuchet MS"><SPAN
class=558462408-29032012>b) Is there a way for the server itself to see
when a file has reached its end?</SPAN></FONT></DIV>
<DIV><FONT color=#005080 face="Trebuchet MS"><SPAN class=558462408-29032012>c)
What do you feel is the best way to handle something like
this?</SPAN></FONT></DIV>
<DIV><FONT color=#005080 face="Trebuchet MS"><SPAN
class=558462408-29032012></SPAN></FONT> </DIV>
<DIV><FONT color=#005080 face="Trebuchet MS"><SPAN
class=558462408-29032012>Thank you again for all your
assistance.</SPAN></FONT></DIV></BODY></HTML>