Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # Thread pool based on: http://code.activestate.com/recipes/577187-python-thread-pool/ | |
| from queue import Queue | |
| from threading import Thread | |
| from functools import partial | |
| import tornado.httpserver | |
| import tornado.ioloop | |
| import tornado.options |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """Simple TCP server for playing Tic-Tac-Toe game. | |
| Use Player-to-Player game mode based on naming auth. | |
| No thoughts about distribution or pub/sub mode | |
| (for monitoring or something like this). Just | |
| basic functionality. | |
| """ | |
| import time | |
| import logging |