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)
def _buildAddr(self, name): return address.UNIXAddress(name)
def getPeer(self): return address.UNIXAddress(self.hostname)
def getPeer(self): return address.UNIXAddress(self.remoteaddr)
def getHost(self): return address.UNIXAddress(self.socket.getsockname())
def getDestination(self): return address.UNIXAddress(self.address)
def getHost(self): return address.UNIXAddress(None)