Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/dabeaz-course/python-mastery
/ accept
Method
accept
Solutions/8_6/server.py:35–38 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
33
self.sock = sock
34
35
def
accept(self):
36
yield
'recv'
, self.sock
37
client, addr = self.sock.accept()
38
return
GenSocket(client), addr
39
40
def
recv(self, maxsize):
41
yield
'recv'
, self.sock
Callers
2
tcp_server
Function · 0.95
tcp_server
Function · 0.45
Calls
1
GenSocket
Class · 0.70
Tested by
no test coverage detected