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


Python LineReceiver.connectionMade方法代码示例

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


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

示例1: connectionMade

# 需要导入模块: from twisted.protocols.basic import LineReceiver [as 别名]
# 或者: from twisted.protocols.basic.LineReceiver import connectionMade [as 别名]
 def connectionMade(self):
     ProcessProtocol.connectionMade(self)
     LineReceiver.connectionMade(self)
     self.transport.disconnecting = False #erm. Needs this to fix a bug in Twisted?
     self.send_to_client("hello", [self.communicator.mod.name])
     if not self.messages_not_acknowledged:
         self.client_started_processing_at = time.time()
     self.messages_not_acknowledged += 1
开发者ID:dmoggles,项目名称:pymudclient,代码行数:10,代码来源:client.py

示例2: connectionMade

# 需要导入模块: from twisted.protocols.basic import LineReceiver [as 别名]
# 或者: from twisted.protocols.basic.LineReceiver import connectionMade [as 别名]
    def connectionMade(self):
        """
        Notify our factory that we're ready to accept connections.
        """
        LineReceiver.connectionMade(self)

        if self.factory.deferred is not None:
            self.factory.deferred.callback(self)
            self.factory.deferred = None
开发者ID:Crackpot,项目名称:gftop,代码行数:11,代码来源:iwproxypool.py

示例3: connectionMade

# 需要导入模块: from twisted.protocols.basic import LineReceiver [as 别名]
# 或者: from twisted.protocols.basic.LineReceiver import connectionMade [as 别名]
    def connectionMade(self):
        LineReceiver.connectionMade(self)
        self.transport_connected = True

        self.log("Transport connected")
开发者ID:danielkza,项目名称:mac0448-chat,代码行数:7,代码来源:__init__.py

示例4: connectionMade

# 需要导入模块: from twisted.protocols.basic import LineReceiver [as 别名]
# 或者: from twisted.protocols.basic.LineReceiver import connectionMade [as 别名]
		def connectionMade(self):
			""" Initialize connection """
			LineReceiver.connectionMade(self)
			#reactor.callLater(0, algo_schedule)
			on_connection()
			print "Connection made..."
开发者ID:nickers,项目名称:sw-dolev,代码行数:8,代码来源:communication_client.py

示例5: connectionMade

# 需要导入模块: from twisted.protocols.basic import LineReceiver [as 别名]
# 或者: from twisted.protocols.basic.LineReceiver import connectionMade [as 别名]
 def connectionMade(self):
     LineReceiver.connectionMade(self)
     self.sendLine("list")
开发者ID:fdChasm,项目名称:cube-dev-auth-proxy,代码行数:5,代码来源:get_master_server_list.py

示例6: connectionMade

# 需要导入模块: from twisted.protocols.basic import LineReceiver [as 别名]
# 或者: from twisted.protocols.basic.LineReceiver import connectionMade [as 别名]
 def connectionMade(self):
     LineReceiver.connectionMade(self)
     print "server connected"
开发者ID:wuzhe,项目名称:medicalook,代码行数:5,代码来源:medproto_client.py

示例7: connectionMade

# 需要导入模块: from twisted.protocols.basic import LineReceiver [as 别名]
# 或者: from twisted.protocols.basic.LineReceiver import connectionMade [as 别名]
 def connectionMade(self):
     LineReceiver.connectionMade(self)
     self.subscriber = Subscriber(self)
开发者ID:wikimedia,项目名称:mediawiki-rcsub,代码行数:5,代码来源:rcsub.py

示例8: connectionMade

# 需要导入模块: from twisted.protocols.basic import LineReceiver [as 别名]
# 或者: from twisted.protocols.basic.LineReceiver import connectionMade [as 别名]
 def connectionMade(self):
     LineReceiver.connectionMade(self)
     print 'thruster', self.thruster_id, 'connection made'
开发者ID:jpanikulam,项目名称:PropaGator,代码行数:5,代码来源:devices.py

示例9: connectionMade

# 需要导入模块: from twisted.protocols.basic import LineReceiver [as 别名]
# 或者: from twisted.protocols.basic.LineReceiver import connectionMade [as 别名]
 def connectionMade(self):
     print "a new client connected ..."
     LineReceiver.connectionMade(self)
     self.factory.clients.append(self)
开发者ID:wuzhe,项目名称:medicalook,代码行数:6,代码来源:medproto.py

示例10: connectionMade

# 需要导入模块: from twisted.protocols.basic import LineReceiver [as 别名]
# 或者: from twisted.protocols.basic.LineReceiver import connectionMade [as 别名]
 def connectionMade(self):
     LineReceiver.connectionMade(self)
     self.state = STATES.LOGGING_IN
     self.login()
开发者ID:DanBeard,项目名称:janus_bot,代码行数:6,代码来源:bot.py

示例11: connectionMade

# 需要导入模块: from twisted.protocols.basic import LineReceiver [as 别名]
# 或者: from twisted.protocols.basic.LineReceiver import connectionMade [as 别名]
 def connectionMade(self):
     self._host = self.transport.getHost().host
     logger.debug("{} connected".format(self.host))
     LineReceiver.connectionMade(self)
开发者ID:fdChasm,项目名称:cube-dev-auth-proxy,代码行数:6,代码来源:auth_proxy_client_protocol.py


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