after I was able to load that huge files into my widget It looks like
my Widget is the most inefficient Widget on the world. :D
Since JavaScript has not GarbageCollector or other mechanism to free
up memory my Widget uses easyly up to 100MB RAM. :D
Who can beat this ? ^^
Now seriously. This is absolutely intolerable. Therefor I'll need to
put all the stuff into a Widget Plugin. I expect a lesser memory
consumption and more control of the memory usage of this. But this
seems to be an insurmountable obstacle for me.
One half of the data loaded into the Widget comes from a file that is
stored locally.
The other half of the data comes from a telnet session which I was
controlling using the asynchronous widget.system command.
To reduce the memory usage both parts will have to be placed into the
Widget Plugin.
And this is the problem.
With my basic C++ knowledge I'd be able to read that local file.
But I don't know the least thing of how to communicate with a server.
Perhaps I should go into detail.
I'm currently working on the next version of MailWidget. It's POP3
eMail checking mechanism is still inaccurate.
In my last stable version I was using telnet or openSSL to
communicate with the server. Since I wanted my Widget to be
more accurate I was requesting more information from the server as
Mail.app it does in oder to find new eMails accurately.
The data from the server is then compared against a local file where
Mail.app stores the information which eMail was
downloaded from the server. In my case the servercommunication
produces 50kb of data which needs to be processed
and the local file takes 126kb on the hard drive.
Back to my question :
How can I make a telnet like communication with the server ?
I'm really despaired.
Thanks
Michael
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/email@hidden