コード例 #1
0
ファイル: server.py プロジェクト: longde123/fmspy
    def __init__(self):
        """
        Constructor.
        """
        RTMPCoreProtocol.__init__(self)

        self.application = None
        self._app = AppStorage()
コード例 #2
0
ファイル: server.py プロジェクト: Xkeeper/fmspy
 def __init__(self):
     """
     Constructor.
     """
     RTMPCoreProtocol.__init__(self)
     
     self.application = None
     self._app = AppStorage()
コード例 #3
0
ファイル: server.py プロジェクト: longde123/fmspy
    def connectionLost(self, reason):
        """
        Connection with peer was lost for some reason.
        """
        if self.application is not None:
            self.application.disconnect(self)
            self.application = None
            self._app = None

        RTMPCoreProtocol.connectionLost(self, reason)
コード例 #4
0
ファイル: server.py プロジェクト: Xkeeper/fmspy
    def connectionLost(self, reason):
        """
        Connection with peer was lost for some reason.
        """
        if self.application is not None:
            self.application.disconnect(self)
            self.application = None
            self._app = None

        RTMPCoreProtocol.connectionLost(self, reason)