Mercurial > cosocket
changeset 7:d3ae3fc76711
Removed all use of the word 'Chatty'
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Fri, 17 Apr 2009 17:07:27 -0700 |
parents | fdcb6f3e1a0f |
children | 2571a5297800 |
files | example.py taw.py |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/example.py Fri Apr 17 17:04:30 2009 -0700 +++ b/example.py Fri Apr 17 17:07:27 2009 -0700 @@ -17,8 +17,8 @@ print 'second response: %s' % repr(response) if __name__ == '__main__': - server = ChattyCoroutineServer(('127.0.0.1', 8071), + server = CoroutineSocketServer(('127.0.0.1', 8071), lame_http_server_coroutine) - client = ChattyCoroutineClient(('www.google.com', 80), + client = CoroutineSocketClient(('www.google.com', 80), lame_http_client_coroutine) server.run()
--- a/taw.py Fri Apr 17 17:04:30 2009 -0700 +++ b/taw.py Fri Apr 17 17:07:27 2009 -0700 @@ -49,7 +49,7 @@ self.__data = [] self.__process_next_instruction(data) -class ChattyCoroutineServer(asyncore.dispatcher): +class CoroutineSocketServer(asyncore.dispatcher): def __init__(self, addr, coroutineFactory): asyncore.dispatcher.__init__(self) self.__coroutineFactory = coroutineFactory @@ -67,7 +67,7 @@ coroutine = self.__coroutineFactory(addr) _AsyncChatCoroutineBridge(coroutine, conn) -class ChattyCoroutineClient(_AsyncChatCoroutineBridge): +class CoroutineSocketClient(_AsyncChatCoroutineBridge): def __init__(self, addr, coroutineFactory): coroutine = coroutineFactory(addr) _AsyncChatCoroutineBridge.__init__(self, coroutine)