Alternatively: https://github.com/andris9/rai
On Tue, Jun 12, 2012 at 7:34 AM, Matt <[email protected]> wrote: > Yes you need a state machine. This is basically how SMTP works, so you > should look into one of the SMTP modules like Haraka. > > > On Tue, Jun 12, 2012 at 10:14 AM, Andrew Finnell <[email protected] > > wrote: > >> I have been investigating NodeJS for quite some time. I see the benefits >> of the asynchronous nature and the pool of talent available to write in >> JavaScript. >> >> I have having a little difficulty understanding how I might write a >> system to deal with TL1 type devices. For those that do not know TL1 is a >> command based protocol that can run over TCP/IP. You can do things like: >> >> > CONNECT (id) username/password >> < Success (id) >> RETRIEVE-DATA (id) parameter1 >> < data 1 (id) >> < data 2 (id) >> < asynchronous response (out-of-band) (id) >> < asynchronous response (out-of-band) (someone elses id) >> >> I made up the commands to simplify the idea, but most of the time the >> flow fits a synchronous model. >> >> I thought about creating a simple FSM around the current states of the >> system such as connecting, asking for data etc, but this seems overly >> complex for doing something so simple that can be done with TELNET and a >> bash script file. >> >> Does anyone have patterns that they have successfully used to solve these >> kinds of problems? >> >> >> -- >> Job Board: http://jobs.nodejs.org/ >> Posting guidelines: >> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines >> You received this message because you are subscribed to the Google >> Groups "nodejs" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/nodejs?hl=en?hl=en >> > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
