Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_server
Function · 0.95
Calls
1
GenSocket
Class · 0.70
Tested by
no test coverage detected