Charles, Thanks... FYI Async tsNet in the iOS version just worked(like magic).
Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Charles Warwick via use-livecode Sent: Friday, December 08, 2017 5:00 AM To: How to use LiveCode Cc: Charles Warwick Subject: Re: libUrl tsNet and socketTimeoutInterval Hi Ralph, There currently isn’t any ability to query the existing timeout values, though the default values are listed in the dictionary. I will look to add that ability in an upcoming release. If the Internet library is included in your application, it will automatically call tsNetInit for you on startup (which is what happens in the IDE) as it uses tsNet if it is available (and not disabled). If your application does not include the Internet library, but does include tsNet, you will need to call tsNetInit. Regards, Charles > On 8 Dec 2017, at 9:55 am, Ralph DiMola via use-livecode > <use-livecode@lists.runrev.com> wrote: > > Ok, I just got async tsNet working in IDE and Android(Testing iOS later). I > works great! Hat tip to all the contributors. One question and one > Observation: > 1) How do you query the current tsNet timeout settings? I have quite a few > places where I save the socketTimeoutInterval, set it to a new value, do > something and then set it back to the saved timeout. I don't see a way to > query this in the dictionary. > 2) I seems the you don't need to do a "tsNetInit" in the IDE. In the IDE one > gets "tsneterr: Already initialized". On Android this error does not occur. > > Ralph DiMola > IT Director > Evergreen Information Services > rdim...@evergreeninfo.net > > > -----Original Message----- > From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf > Of Charles Warwick via use-livecode > Sent: Thursday, December 07, 2017 4:53 PM > To: How to use LiveCode > Cc: Charles Warwick > Subject: Re: libUrl tsNet and socketTimeoutInterval > > Sorry for the confusion, tsNet does handle the ‘load’ function, effectively > using its own asynchronous functions to replicate standard libUrl behaviour. > >> On 8 Dec 2017, at 6:44 am, Sannyasin Brahmanathaswami via use-livecode >> <use-livecode@lists.runrev.com> wrote: >> >> Thanks Charles…we have enough to go on now. >> >> well, almost >> >> if I read you right "load" is not handled by TSNet (since that is libURL's >> own asynchronous operation?) >> >> >> >> >> www.himalayanacademy.com <http://www.himalayanacademy.com> Get the SivaSiva >> App today (for iPhone and iPad) >> https://itunes.apple.com/us/app/sivasiva/id1271260502?mt=8 >> >> >> >> >> On 12/6/17, 10:43 PM, "use-livecode on behalf of Charles Warwick via >> use-livecode" <use-livecode-boun...@lists.runrev.com on behalf of >> use-livecode@lists.runrev.com> wrote: >> >> Sorry, divide my figures for the last parameter to tsNetSetTimeouts by 8, >> it has been a long day >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode