MCPcopy Index your code
hub / github.com/python/cpython / getpeername

Method getpeername

Lib/test/mock_socket.py:104–105  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

102 return len(data)
103
104 def getpeername(self):
105 return ('peer-address', 'peer-port')
106
107 def close(self):
108 pass

Callers 10

_createMethod · 0.45
_check_connectedMethod · 0.45
__repr__Method · 0.45
_fallback_socketpairFunction · 0.45
makepasvMethod · 0.45
test_sock_acceptMethod · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls