Example #1
0
	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)
Example #2
0
	def _buildAddr(self, name):
		return address.UNIXAddress(name)
Example #3
0
	def getPeer(self):
		return address.UNIXAddress(self.hostname)
Example #4
0
	def getPeer(self):
		return address.UNIXAddress(self.remoteaddr)
Example #5
0
	def getHost(self):
		return address.UNIXAddress(self.socket.getsockname())
Example #6
0
	def getDestination(self):
		return address.UNIXAddress(self.address)
Example #7
0
	def getHost(self):
		return address.UNIXAddress(None)