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

Method create_socket

Lib/test/support/asyncore.py:296–300  ·  view source on GitHub ↗
(self, family=socket.AF_INET, type=socket.SOCK_STREAM)

Source from the content-addressed store, hash-verified

294 self._fileno = None
295
296 def create_socket(self, family=socket.AF_INET, type=socket.SOCK_STREAM):
297 self.family_and_type = family, type
298 sock = socket.socket(family, type)
299 sock.setblocking(False)
300 self.set_socket(sock)
301
302 def set_socket(self, sock, map=None):
303 self.socket = sock

Callers 3

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 3

set_socketMethod · 0.95
socketMethod · 0.80
setblockingMethod · 0.45

Tested by 2

__init__Method · 0.36
__init__Method · 0.36