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


Python Debugger.attach方法代码示例

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


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

示例1: __init__

# 需要导入模块: from Yowsup.Common.debugger import Debugger [as 别名]
# 或者: from Yowsup.Common.debugger.Debugger import attach [as 别名]
	def __init__(self,tag,attributes,children=None,data=None):

		Debugger.attach(self)
		
		self.tag = tag;
		self.attributes = attributes;
		self.children = children;
		self.data = data
开发者ID:1azarus,项目名称:yowsup,代码行数:10,代码来源:protocoltreenode.py

示例2: __init__

# 需要导入模块: from Yowsup.Common.debugger import Debugger [as 别名]
# 或者: from Yowsup.Common.debugger.Debugger import attach [as 别名]
	def __init__(self,tag,attributes,children=None,data=None):

		Debugger.attach(self)
		self.__log = logging.getLogger(__name__)
		
		self.tag = tag;
		self.attributes = attributes;
		self.children = children;
		self.data = data
开发者ID:kevinvandervlist,项目名称:yowsup,代码行数:11,代码来源:protocoltreenode.py

示例3: __init__

# 需要导入模块: from Yowsup.Common.debugger import Debugger [as 别名]
# 或者: from Yowsup.Common.debugger.Debugger import attach [as 别名]
	def __init__(self):
		WADebug.attach(self)
		
		self.uaIndex = 1;
		self.pvars = [];
		self.port = 443;
		self.type = "GET"
		self.parser = None
		self.params = []
开发者ID:cereal,项目名称:whatsploit,代码行数:11,代码来源:warequest.py

示例4: __init__

# 需要导入模块: from Yowsup.Common.debugger import Debugger [as 别名]
# 或者: from Yowsup.Common.debugger.Debugger import attach [as 别名]
	def __init__(self):
		WADebug.attach(self)

		self.pvars = [];
		self.port = 443;
		self.type = "GET"
		self.parser = None
		self.params = []
		self.headers = {}

		self.sent = False
		self.response = None
开发者ID:1azarus,项目名称:yowsup,代码行数:14,代码来源:warequest.py

示例5: __init__

# 需要导入模块: from Yowsup.Common.debugger import Debugger [as 别名]
# 或者: from Yowsup.Common.debugger.Debugger import attach [as 别名]
    def __init__(self,inputstream):
        
        Debugger.attach(self)

        self.inputKey = None
        
        self._d('Reader init');
        self.tokenMap = Constants.dictionary;
        self.rawIn = inputstream;
        self.inn = ByteArray();
        self.buf = []#bytearray(1024);
        self.bufSize = 0;
        self.readSize = 1;
开发者ID:1azarus,项目名称:yowsup,代码行数:15,代码来源:bintreenode.py

示例6: __init__

# 需要导入模块: from Yowsup.Common.debugger import Debugger [as 别名]
# 或者: from Yowsup.Common.debugger.Debugger import attach [as 别名]
	def __init__(self):
		Debugger.attach(self)

		self.reader = BinTreeNodeReader(self)
		self.writer = BinTreeNodeWriter(self)
		
		self.readSize = 1;
		self.buf = [];
		self.maxBufRead = 0;
		self.connected = 0
		
		self.jid = ""
		
		super(ConnectionEngine,self).__init__(socket.AF_INET, socket.SOCK_STREAM);
开发者ID:Chispasgg,项目名称:yowsup,代码行数:16,代码来源:connectionengine.py

示例7: __init__

# 需要导入模块: from Yowsup.Common.debugger import Debugger [as 别名]
# 或者: from Yowsup.Common.debugger.Debugger import attach [as 别名]
	def __init__(self, connection):
		Debugger.attach(self)

		self.connection = connection
		self.mechanism = AuthMechanism
		self.authenticated = False

		self.username = None
		self.password = None
		self.domain = None
		self.resource = None

		self.supportsReceiptAcks = True
		self.accountKind = None
		self.expireData = None

		self.authCallbacks = []
开发者ID:Ediacarium,项目名称:BridgeMPP,代码行数:19,代码来源:auth.py

示例8: __init__

# 需要导入模块: from Yowsup.Common.debugger import Debugger [as 别名]
# 或者: from Yowsup.Common.debugger.Debugger import attach [as 别名]
	def __init__(self):
		Debugger.attach(self);

		self.signalInterface = None
		#self.socket = connection
		self.terminateRequested = False
		self.disconnectedSent = False
		self.timeout = 180
		self.selectTimeout = 3
		self.requests = {};
		self.lock = threading.Lock()
		self.disconnectedCallback = None
		self.autoPong = True
		self.onPing = self.ping = None

		self.lastPongTime = int(time.time())
		super(ReaderThread,self).__init__();

		self.daemon = True
开发者ID:alesoo87,项目名称:yowsup,代码行数:21,代码来源:connectionmanager.py

示例9: __init__

# 需要导入模块: from Yowsup.Common.debugger import Debugger [as 别名]
# 或者: from Yowsup.Common.debugger.Debugger import attach [as 别名]
 def __init__(self):  # @@TODO unified naming pattern
     Debugger.attach(self)
     self.registeredSignals = {}
开发者ID:hksonngan,项目名称:yowsup,代码行数:5,代码来源:Interface.py

示例10: __init__

# 需要导入模块: from Yowsup.Common.debugger import Debugger [as 别名]
# 或者: from Yowsup.Common.debugger.Debugger import attach [as 别名]
	def __init__(self,conn):
		Debugger.attach(self);

		self.conn = conn
		self._d("Yowsup WAUTH-1 INIT");
开发者ID:Chispasgg,项目名称:yowsup,代码行数:7,代码来源:wauth.py


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