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

Method accept

Lib/test/support/asyncore.py:348–360  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

346 raise OSError(err, errorcode[err])
347
348 def accept(self):
349 # XXX can return either an address pair or None
350 try:
351 conn, addr = self.socket.accept()
352 except TypeError:
353 return None
354 except OSError as why:
355 if why.errno in (EWOULDBLOCK, ECONNABORTED, EAGAIN):
356 return None
357 else:
358 raise
359 else:
360 return conn, addr
361
362 def send(self, data):
363 try:

Callers 10

handle_acceptMethod · 0.95
serverMethod · 0.45
_runMethod · 0.45
_runMethod · 0.45
runMethod · 0.45
test_subprocessFunction · 0.45

Calls

no outgoing calls

Tested by 7

serverMethod · 0.36
_runMethod · 0.36
runMethod · 0.36
test_subprocessFunction · 0.36