Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ start_server
Function
start_server
recipes/Python/511434_Paint_10/recipe-511434.py:54–59 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
52
QRI = spots.qri(server)
53
54
def
start_server():
55
global QRI
56
server = socket.socket()
57
server.bind((
''
, PORT))
58
server.listen(1)
59
QRI = spots.qri(server.accept()[0])
60
61
def
processor():
62
while
True:
Callers
1
connect
Function · 0.70
Calls
4
socket
Method · 0.80
bind
Method · 0.45
listen
Method · 0.45
accept
Method · 0.45
Tested by
no test coverage detected