MCPcopy 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
54def 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
61def processor():
62 while True:

Callers 1

connectFunction · 0.70

Calls 4

socketMethod · 0.80
bindMethod · 0.45
listenMethod · 0.45
acceptMethod · 0.45

Tested by

no test coverage detected