MCPcopy Index your code
hub / github.com/battlecode/battlecode-2018 / handle

Method handle

battlecode-manager/server.py:654–665  ·  view source on GitHub ↗

This does all the processing of the data we receive and we spend our time in this function.

(self)

Source from the content-addressed store, hash-verified

652 self.send_message(message)
653
654 def handle(self):
655 '''
656 This does all the processing of the data we receive and we spend our
657 time in this function.
658 '''
659 if self.is_unix_stream:
660 try:
661 self.player_handler()
662 except TimeoutError:
663 return
664 else:
665 self.viewer_handler()
666
667 return ReceiveHandler
668

Callers

nothing calls this directly

Calls 2

player_handlerMethod · 0.95
viewer_handlerMethod · 0.95

Tested by

no test coverage detected