示例#1
0
文件: unix.py 项目: samis/blockBox
	def getHost(self):
		"""Returns a UNIXAddress.

		This indicates the server's address.
		"""
		if sys.version_info > (2, 5) or _inFilesystemNamespace(self.port):
			path = self.socket.getsockname()
		else:
			# Abstract namespace sockets aren't well supported on Python 2.4.
			# getsockname() always returns ''.
			path = self.port
		return address.UNIXAddress(path)
示例#2
0
文件: unix.py 项目: samis/blockBox
	def _buildAddr(self, name):
		return address.UNIXAddress(name)
示例#3
0
文件: unix.py 项目: samis/blockBox
	def getPeer(self):
		return address.UNIXAddress(self.hostname)
示例#4
0
文件: unix.py 项目: samis/blockBox
	def getPeer(self):
		return address.UNIXAddress(self.remoteaddr)
示例#5
0
文件: unix.py 项目: samis/blockBox
	def getHost(self):
		return address.UNIXAddress(self.socket.getsockname())
示例#6
0
文件: unix.py 项目: samis/blockBox
	def getDestination(self):
		return address.UNIXAddress(self.address)
示例#7
0
文件: unix.py 项目: samis/blockBox
	def getHost(self):
		return address.UNIXAddress(None)