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

Method create_socket

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

Source from the content-addressed store, hash-verified

284 self._fileno = None
285
286 def create_socket(self, family=socket.AF_INET, type=socket.SOCK_STREAM):
287 self.family_and_type = family, type
288 sock = socket.socket(family, type)
289 sock.setblocking(False)
290 self.set_socket(sock)
291
292 def set_socket(self, sock, map=None):
293 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