MCPcopy Create free account
hub / github.com/dabeaz-course/python-mastery / accept

Method accept

Solutions/8_6/asyncserver.py:37–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

35
36 @coroutine
37 def accept(self):
38 yield 'recv', self.sock
39 client, addr = self.sock.accept()
40 return GenSocket(client), addr
41
42 @coroutine
43 def recv(self, maxsize):

Callers 1

tcp_serverFunction · 0.95

Calls 1

GenSocketClass · 0.70

Tested by

no test coverage detected