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

Method accept

tools/python-3.11.9-amd64/Lib/asyncore.py:347–359  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers 1

handle_acceptMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected