[Live-devel] Can live555 client reconnect the server automatically after several minutes?

Ross Finlayson finlayson at live555.com
Wed Apr 15 07:34:40 PDT 2009


>i am writing a media player client with live555. i  want to 
>implement it just like a long term monitor system somwhow. that is, 
>the client should connect the server , receive the stream, play the 
>program, when the connection loss happen, the client can reconnect 
>the server until the connection has been re-established.
>
>in reality, i have made some experiments: when the player is playing 
>the program, i pulled the RJ45 modular plug out ,  and plug it in 
>several seconds or minutes later.  as a result, i found that the 
>client can reconnect the server if just several seconds delay,  but 
>failed to reconnect the server if i plug the RJ45 in several minutes 
>later.

Each "RTSPClient" object encapsulates a *single* TCP connection only. 
Therefore, to ensure that you can reconnect to the server (even if 
the previous TCP connection has closed), you should use a *different* 
"RTSPClient" object each time you connect to the server.
-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/


More information about the live-devel mailing list