Subj : Re: setTimeout and data storage
To : Xeanalyth
From : Tracker1
Date : Fri Jul 20 2012 12:37 am
> setTimeout is not defined? How does one go about executing
> timed events?
on
http://www.roughneckbbs.com/Downloads.aspx download, and look into the S3
shell... basically all the input prompts are doing a 1 second timeout, then
checking for other stuff (this allows for inbound messages at a command
prompt).
> Secondly, is there a standard way for SBBS apps (doors, utils and
> other things) to store arbitrary data in a database style format?
> I cannot find anything in the API documentation that looks like
> it's supported.
Depends on what you need... if all you need is a key/document store... you can
create a directory for your app's data, and put ####.json files... JSON.js
should work fine for serialization/deserialization.
> If there isn't... what are other people using for their persistent
> data stores for extensions to and doors for SBBS?
generally people are using text configs, serializing json, doing something
custom, or shoe-horning in a database client driver... I wrote a connector
for ADO.Net requests at one point... at the time I was using XML, before a
version of spidermonkey with E4X support, or for that matter the boom of
JSON... didn't perform well enough at the time.. ymmv.
--
Michael J. Ryan -
http://tracker1.info/
---
� Synchronet � Roughneck BBS - telnet://roughneckbbs.com -
http://roughneckbbs.com