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