MCPcopy Create free account
hub / github.com/ELMERIKH/PyinMemoryPE / remote_host

Method remote_host

windows/winobject/network.py:61–71  ·  view source on GitHub ↗

Identification of the remote hostname. Equals ``remote_addr`` if the resolution fails :type: :class:`str` or :class:`int`

(self)

Source from the content-addressed store, hash-verified

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>"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected