Scene:
1. Pull the camera cable
2. Direct the power of the broken camera
Now need to on the client side, how do I know that the network impassability? (personal understanding, two scenarios above, for the client end, is with the network access of the camera broke)
Live555 code also saw a bit, but I didn't find this case, the live555 how feedback, need to get the state of the network impassability, from live555 (communication using the live555 way of UDP)
Can recognize, under the guidance of? Don't remain grateful!!
CodePudding user response:
Thought what a timeout detection, and then have a callback, but the code does not see, yet someone can under the guidance of?CodePudding user response:
Currently using the thread once every 10 s detection in this 10 s if they received a new data frame and it is can be as a criterion of network status, but I am more concerned about the Live555 code itself, whether provided the judgment method, study the Live555 many ah, but have not seen someone asked this question or someone wrote this part of the content,,Wait ~ ~ ~ ~ ~