[Twisted-Python] how to get the user's input

lei ren reynold.lei at gmail.com
Tue Dec 2 08:38:18 EST 2008

hello ,everybody:
   i am a new to use the twisted. i woul'd like to complete a WEBGAME with
it.but i have a problem for the twisted
i have complete the server ,and the simple client.but ,i want to the client
have more function. one is let the usr input some command to the server
but when i write the code ,i found it's hard ,if i want to get the user's
input with raw_input() in a while loop,but it will block to wait the user'
what can i do for this .use thread? of twisted have some more power feature
for the problem,,thank you every body

ps:the problem like a MUD game ,user can send the command to the server and
reveive the message from server .and the user can send command everytime
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20081202/f282c413/attachment.htm 

More information about the Twisted-Python mailing list