MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / set_socket

Method set_socket

tools/python-3.11.9-amd64/Lib/asyncore.py:291–294  ·  view source on GitHub ↗
(self, sock, map=None)

Source from the content-addressed store, hash-verified

289 self.set_socket(sock)
290
291 def set_socket(self, sock, map=None):
292 self.socket = sock
293 self._fileno = sock.fileno()
294 self.add_channel(map)
295
296 def set_reuse_addr(self):
297 # try to re-use a server port if possible

Callers 2

__init__Method · 0.95
create_socketMethod · 0.95

Calls 2

add_channelMethod · 0.95
filenoMethod · 0.45

Tested by

no test coverage detected