当前位置: 首页>>代码示例>>Python>>正文


Python HTTPChannel.connectionLost方法代码示例

本文整理汇总了Python中twisted.web.http.HTTPChannel.connectionLost方法的典型用法代码示例。如果您正苦于以下问题:Python HTTPChannel.connectionLost方法的具体用法?Python HTTPChannel.connectionLost怎么用?Python HTTPChannel.connectionLost使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在twisted.web.http.HTTPChannel的用法示例。


在下文中一共展示了HTTPChannel.connectionLost方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: connectionLost

# 需要导入模块: from twisted.web.http import HTTPChannel [as 别名]
# 或者: from twisted.web.http.HTTPChannel import connectionLost [as 别名]
 def connectionLost(self, reason):
     self.site.lostClient()
     HTTPChannel.connectionLost(self, reason)
开发者ID:charmander,项目名称:weasyl,代码行数:5,代码来源:polecat.py

示例2: connectionLost

# 需要导入模块: from twisted.web.http import HTTPChannel [as 别名]
# 或者: from twisted.web.http.HTTPChannel import connectionLost [as 别名]
 def connectionLost(self, reason):
     HTTPChannel.connectionLost(self, reason)
     self.site._lost_client()
开发者ID:david415,项目名称:carml,代码行数:5,代码来源:pastebin.py

示例3: connectionLost

# 需要导入模块: from twisted.web.http import HTTPChannel [as 别名]
# 或者: from twisted.web.http.HTTPChannel import connectionLost [as 别名]
 def connectionLost(self, reason):
     print "connectionLost in MyHTTPChannel. channel is ", self
     HTTPChannel.connectionLost(self,reason)
开发者ID:paoletto,项目名称:mediastreamer,代码行数:5,代码来源:twistedServeSingleFile.py

示例4: connectionLost

# 需要导入模块: from twisted.web.http import HTTPChannel [as 别名]
# 或者: from twisted.web.http.HTTPChannel import connectionLost [as 别名]
    def connectionLost(self, reason):
        self.log.debug('Connection lost from client: %s', reason)
        if (self.proxyConnection is not None):
            self.proxyConnection.transport.loseConnection()

        HTTPChannel.connectionLost(self, reason)
开发者ID:mk-fg,项目名称:convergence,代码行数:8,代码来源:ConnectChannel.py

示例5: connectionLost

# 需要导入模块: from twisted.web.http import HTTPChannel [as 别名]
# 或者: from twisted.web.http.HTTPChannel import connectionLost [as 别名]
	def connectionLost(self, reason):
		printStatus("Connection lost to: "+self.transport.getPeer().host)
		HTTPChannel.connectionLost(self, reason)
开发者ID:digistump,项目名称:OakUpdateTool,代码行数:5,代码来源:oakupsrv.py

示例6: connectionLost

# 需要导入模块: from twisted.web.http import HTTPChannel [as 别名]
# 或者: from twisted.web.http.HTTPChannel import connectionLost [as 别名]
    def connectionLost(self, reason):
        logging.debug("Connection lost from client: " + str(reason))
        if (self.proxyConnection is not None):
            self.proxyConnection.transport.loseConnection()

        HTTPChannel.connectionLost(self, reason)
开发者ID:Boorena,项目名称:Convergence,代码行数:8,代码来源:ConnectChannel.py


注:本文中的twisted.web.http.HTTPChannel.connectionLost方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。