def __init__(self, ep=None):
     RpcConnection.__init__(self, ep=ep)
     self.conn = None
     self.exitflag = False
     ep.impl = self
     self.mq_recv = ''
     RpcConnectionMQ_Collection.instance().add(self)
Exemple #2
0
	def __init__(self,ep):
		RpcConnection.__init__(self,ep=ep)
		self.conn = None
		self.exitflag = False
		ep.impl = self
		self.mq_recv='' #RPC调用返回消息回送的mq名称
		RpcConnectionEasyMQ_Collection.instance().add(self)
Exemple #3
0
 def __init__(self, ep):
     RpcConnection.__init__(self, ep=ep)
     self.conn = None
     self.exitflag = False
     ep.impl = self
     self.mq_recv = ''  #RPC调用返回消息回送的mq名称
     RpcConnectionEasyMQ_Collection.instance().add(self)
Exemple #4
0
	def __init__(self,ep=None):
		RpcConnection.__init__(self,ep=ep)
		self.conn = None
		self.exitflag = False
		ep.impl = self
		self.mq_recv =''
		RpcConnectionMQ_Collection.instance().add(self)
Exemple #5
0
	def __init__(self,ep=None):
		import string

		RpcConnection.__init__(self,ep=ep)
		self.conn = None
		self.exitflag = False
		if ep :
			ep.impl = self
		self.mq_recv =''

		#parsing endpoint tuple
		fields = ep.addr.split(':')
		self.queue_type = fields.pop().strip().lower()
		uri = string.join(fields,':')
		self.address_read,self.address_write = map(string.strip,uri.split('%'))

		self.sock = None
		self.af = AF_NONE

		RpcConnectionMQ_Collection.instance().add(self)