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

Method server_activate

Lib/idlelib/rpc.py:84–91  ·  view source on GitHub ↗

Override TCPServer method, connect() instead of listen() Due to the reversed connection, self.server_address is actually the address of the Idle Client to which we are connecting.

(self)

Source from the content-addressed store, hash-verified

82 pass
83
84 def server_activate(self):
85 """Override TCPServer method, connect() instead of listen()
86
87 Due to the reversed connection, self.server_address is actually the
88 address of the Idle Client to which we are connecting.
89
90 """
91 self.socket.connect(self.server_address)
92
93 def get_request(self):
94 "Override TCPServer method, return already connected socket"

Callers 2

http_serverFunction · 0.45
http_multi_serverFunction · 0.45

Calls 1

connectMethod · 0.45

Tested by 2

http_serverFunction · 0.36
http_multi_serverFunction · 0.36