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