Prev: telugu movies songs,telugu movie reviews,telugu movie songs,telugu songs,telugu movie news,telugu film news,telugu music,telugu movie stills,telugu websites,telugu songs download,telugu news,telugu mp3,telugu mp3 songs,telugu new songs
From: Peter Hickman on 9 Aug 2010 11:22
You could set up a chat server (using the link given earlier or
written with event machine - a very nice gem with good examples
including a chat server if I recall correctly).
When you connect to the chat server it will create a persistent
connection to hold the state of the conversation.
So first write an Eliza class (or use an existing one) which has a
new, chat and quit method. The chat method takes the users input as a
string and returns a string. You can write and test this in isolation.
Then hack up a chat server that instantiates an instance of eliza when
a new connection is made, and feed the users input to it. Again this
is a small project and easily testable as all it is is a chat server.
Glue said code together.
From: Sniper Abandon on 10 Aug 2010 00:51
that is exactly what i want .
thanks Brian and Peter
i thing i did not ask my question clearly (sorry for that)
thanks to all
Posted via http://www.ruby-forum.com/.