本文整理汇总了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)
示例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
示例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
示例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()
示例5: finish
# 需要导入模块: from SocketServer import StreamRequestHandler [as 别名]
# 或者: from SocketServer.StreamRequestHandler import finish [as 别名]
def finish(self):
StreamRequestHandler.finish(self)
self._controller.stop()
示例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
示例7: finish
# 需要导入模块: from SocketServer import StreamRequestHandler [as 别名]
# 或者: from SocketServer.StreamRequestHandler import finish [as 别名]
def finish(self):
StreamRequestHandler.finish(self)
self.request.close()
示例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)
示例9: finish
# 需要导入模块: from SocketServer import StreamRequestHandler [as 别名]
# 或者: from SocketServer.StreamRequestHandler import finish [as 别名]
def finish(self):
StreamRequestHandler.finish(self)
示例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)