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

Method accept

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

Source from the content-addressed store, hash-verified

356 raise OSError(err, errorcode[err])
357
358 def accept(self):
359 # XXX can return either an address pair or None
360 try:
361 conn, addr = self.socket.accept()
362 except TypeError:
363 return None
364 except OSError as why:
365 if why.errno in (EWOULDBLOCK, ECONNABORTED, EAGAIN):
366 return None
367 else:
368 raise
369 else:
370 return conn, addr
371
372 def send(self, data):
373 try:

Callers 7

handle_acceptMethod · 0.95
serverMethod · 0.45
_runMethod · 0.45
_runMethod · 0.45

Calls

no outgoing calls

Tested by 5

serverMethod · 0.36
_runMethod · 0.36