def recvRtspReply(self):
    """Receive RTSP reply from the server."""
    while True:
      reply = self.rtspSocket.recv(1024)

      if reply:
        self.parseRtspReply(reply)

      # Close the RTSP socket upon requesting Teardown
      if self.requestSent == self.TEARDOWN:
        self.rtspSocket.shutdown(socket.SHUT_RDWR)
        self.rtspSocket.close()
        break
def recvRtspReply ( self ) : while True : reply = self . rtspSocket . recv ( 1024 ) if reply : self . parseRtspReply ( reply ) if self . requestSent == self . TEARDOWN : self . rtspSocket . shutdown ( socket . SHUT_RDWR ) self . rtspSocket . close ( ) break
Receive RTSP reply from the server.