Identification of the remote hostname. Equals ``remote_addr`` if the resolution fails :type: :class:`str` or :class:`int`
(self)
| 59 | |
| 60 | @property |
| 61 | def remote_host(self): |
| 62 | """Identification of the remote hostname. |
| 63 | Equals ``remote_addr`` if the resolution fails |
| 64 | |
| 65 | :type: :class:`str` or :class:`int` |
| 66 | """ |
| 67 | |
| 68 | try: |
| 69 | return socket.gethostbyaddr(self.remote_addr) |
| 70 | except socket.error: |
| 71 | return self.remote_addr |
| 72 | |
| 73 | def close(self): |
| 74 | """Close the connection <require elevated process>""" |
nothing calls this directly
no outgoing calls
no test coverage detected