MCPcopy
hub / github.com/pallets/werkzeug / __init__

Method __init__

examples/cupoftee/network.py:70–75  ·  view source on GitHub ↗
(self, addr, server_id)

Source from the content-addressed store, hash-verified

68
69class Server(Syncable):
70 def __init__(self, addr, server_id):
71 self.addr = addr
72 self.id = server_id
73 self.players = []
74 if not self.sync():
75 raise ServerError("server not responding in time")
76
77 def _sync(self):
78 s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)

Callers

nothing calls this directly

Calls 2

ServerErrorClass · 0.85
syncMethod · 0.45

Tested by

no test coverage detected