[Live-devel] Second connection fails

Ross Finlayson finlayson at live555.com
Mon Jun 20 19:18:13 PDT 2011


>At the first connection every thing seems fine but then I stop the 
>connection with teardown message. Then I start again my client and 
>I'm getting :p, li { white-space: pre-wrap; }
>
>"OPTIONS send() failed: Broken pipe"
>
>
>I guess this error comes from the fact that the socket of my 
>rtsp_client has not been clean but I don't know how to do it. Should 
>I create a new one or there is function into the rtsp client to 
>clean up socket stuff ?

It wasn't quite clear from your message what you're trying to do, but 
(in any case) you should use a different "RTSPClient" object for each 
new stream that you're requesting (even from the same server). 
"RTSPClient" was not designed to handle more than one stream in 
succession.

I.e., you should call
	Medium::close()
on your first "RTSPClient" object, then create a new one using
	RTSPClient::createNew()
for your next stream.
-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20110620/f61a1c3e/attachment.html>


More information about the live-devel mailing list