MCPcopy Index your code
hub / github.com/RustPython/RustPython / set_socket

Method set_socket

Lib/test/support/asyncore.py:302–305  ·  view source on GitHub ↗
(self, sock, map=None)

Source from the content-addressed store, hash-verified

300 self.set_socket(sock)
301
302 def set_socket(self, sock, map=None):
303 self.socket = sock
304 self._fileno = sock.fileno()
305 self.add_channel(map)
306
307 def set_reuse_addr(self):
308 # try to re-use a server port if possible

Callers 4

__init__Method · 0.95
create_socketMethod · 0.95
secure_connectionMethod · 0.80
cmd_stlsMethod · 0.80

Calls 2

add_channelMethod · 0.95
filenoMethod · 0.45

Tested by 2

secure_connectionMethod · 0.64
cmd_stlsMethod · 0.64