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


Python StreamRequestHandler.finish方法代码示例

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


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

示例1: finish

# 需要导入模块: from SocketServer import StreamRequestHandler [as 别名]
# 或者: from SocketServer.StreamRequestHandler import finish [as 别名]
    def finish(self):
        """ do some cleanup here... ie remove all the
            devices connected to that machine """

        # remove the device
        getDevMgr().removeDevice(self.deviceId)
        StreamRequestHandler.finish(self)
开发者ID:MattHung,项目名称:sage-graphics,代码行数:9,代码来源:listener.py

示例2: finish

# 需要导入模块: from SocketServer import StreamRequestHandler [as 别名]
# 或者: from SocketServer.StreamRequestHandler import finish [as 别名]
 def finish(self):
     StreamRequestHandler.finish(self)
     # Remove this handler from the conversations dict
     print('close %s:%d' % self.client_address)
     if self._conversation_id is not None:
         with conversations_lock:
             handlers = conversations[self._conversation_id]
             handlers.remove(self)
             if not handlers:
                 del conversations[self._conversation_id]
             print_conversation(self._conversation_id, handlers)
         self._conversation_id = None
开发者ID:splatspace,项目名称:esprelay,代码行数:14,代码来源:esprelay.py

示例3: finish

# 需要导入模块: from SocketServer import StreamRequestHandler [as 别名]
# 或者: from SocketServer.StreamRequestHandler import finish [as 别名]
 def finish(self):
     StreamRequestHandler.finish(self)
     try:
         self.server.handlers.remove(self)
     except KeyError:
         pass
开发者ID:kret0s,项目名称:gnuhealth-live,代码行数:8,代码来源:common.py

示例4: finish

# 需要导入模块: from SocketServer import StreamRequestHandler [as 别名]
# 或者: from SocketServer.StreamRequestHandler import finish [as 别名]
 def finish(self):
     StreamRequestHandler.finish(self)
     if self.pipe_control_handler:
         self.pipe_control_handler.close()
开发者ID:dankilman,项目名称:pysource,代码行数:6,代码来源:transport.py

示例5: finish

# 需要导入模块: from SocketServer import StreamRequestHandler [as 别名]
# 或者: from SocketServer.StreamRequestHandler import finish [as 别名]
 def finish(self):
             
     StreamRequestHandler.finish(self)
     self._controller.stop()
开发者ID:hisie,项目名称:eaglebone,代码行数:6,代码来源:dispatching.py

示例6: finish

# 需要导入模块: from SocketServer import StreamRequestHandler [as 别名]
# 或者: from SocketServer.StreamRequestHandler import finish [as 别名]
 def finish(self):
     StreamRequestHandler.finish(self)
     self._icmp_sock.close()
     self._icmp_sock = None
     self._tcp_sock = None
开发者ID:jinxingxing,项目名称:ICMPTunnel,代码行数:7,代码来源:client.py

示例7: finish

# 需要导入模块: from SocketServer import StreamRequestHandler [as 别名]
# 或者: from SocketServer.StreamRequestHandler import finish [as 别名]
 def finish(self):
     StreamRequestHandler.finish(self)
     self.request.close()
开发者ID:sdgdsffdsfff,项目名称:dshb,代码行数:5,代码来源:dshb.py

示例8: finish

# 需要导入模块: from SocketServer import StreamRequestHandler [as 别名]
# 或者: from SocketServer.StreamRequestHandler import finish [as 别名]
 def finish(self):
     asys.log.error("FMIServer client:{0} logout".format(str(self.client_address)))
     StreamRequestHandler.finish(self)
开发者ID:pythonfucku,项目名称:app,代码行数:5,代码来源:FMIServer.py

示例9: finish

# 需要导入模块: from SocketServer import StreamRequestHandler [as 别名]
# 或者: from SocketServer.StreamRequestHandler import finish [as 别名]
 def finish(self):
     
     StreamRequestHandler.finish(self)        
开发者ID:dpm76,项目名称:eaglebone,代码行数:5,代码来源:dummy_listener.py

示例10: finish

# 需要导入模块: from SocketServer import StreamRequestHandler [as 别名]
# 或者: from SocketServer.StreamRequestHandler import finish [as 别名]
 def finish(self):
     self.log('Offline (%s %s)' % (self.addr, self.identity))
     StreamRequestHandler.finish(self)
开发者ID:mcxr4299,项目名称:smartlock,代码行数:5,代码来源:server.py


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