-
-
Save kvalv/1f6e28476496bc539c35 to your computer and use it in GitHub Desktop.
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
| from multiprocessing.managers import BaseManager | |
| class QueueManager(BaseManager): pass | |
| QueueManager.register('get_queue') | |
| m = QueueManager(address=('78.91.11.26', 50000), authkey='lol') | |
| m.connect() | |
| queue = m.get_queue() | |
| while True: | |
| i = raw_input("write GET or WRITE") | |
| if i.lower() == "write": | |
| text = raw_input("text: ") | |
| queue.put(text) | |
| else: | |
| print(queue.get(0)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment