Differences

This shows you the differences between two versions of the page.

random:python_asynchat_chat_example [2013/12/14 00:31]
grant
random:python_asynchat_chat_example [2013/12/14 00:32] (current)
grant
Line 3: Line 3:
  * The handler.push method is thread-safe.   * The handler.push method is thread-safe.
  * The server implements broadcast to all the listening chat clients.   * The server implements broadcast to all the listening chat clients.
-  * Two chat clients implement send/read. This seemed easiest because Python doesn't have an easy way to do an asynchronous raw_input. +  * Two chat clients implement send/read. This seemed easiest because Python doesn't have a simple way to do an asynchronous raw_input. 
-  * Messages must be terminated by newlines.+  * Messages exchanged between client and server must be terminated by newlines.
**chat_server.py** **chat_server.py**
random/python_asynchat_chat_example.txt · Last modified: 2013/12/14 00:32 by grant