Re: AW: how are URL / libUrl / tsNet related?
On 2017-05-22 10:34, Tiemo Hollmann TB via use-livecode wrote: Hi Mark, thank you for your comprehensive explanations. So when building a standalone, I can choose using tsNet or not, but I can't choose in the IDE. What happens in the IDE when using the keyword URL. Does it always go via tsNet (as far I don't unlink tsNet)? If yes and I don't choose the tsNet inclusion in the standalone builder, the standalone would work differently to the IDE. Right? You can explicitly load / unload tsNet in the IDE via the message box: To unload: dispatch "revUnloadLibrary" to stack "tsNetLibUrl" To load again: dispatch "revLoadLibrary" to stack "tsNetLibUrl" Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ 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
AW: how are URL / libUrl / tsNet related?
Hi Mark, thank you for your comprehensive explanations. So when building a standalone, I can choose using tsNet or not, but I can't choose in the IDE. What happens in the IDE when using the keyword URL. Does it always go via tsNet (as far I don't unlink tsNet)? If yes and I don't choose the tsNet inclusion in the standalone builder, the standalone would work differently to the IDE. Right? Tiemo -Ursprüngliche Nachricht- Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag von Mark Waddingham via use-livecode Gesendet: Montag, 22. Mai 2017 10:17 An: How to use LiveCode Cc: Mark Waddingham Betreff: Re: how are URL / libUrl / tsNet related? Hi Tiemo, On 2017-05-22 09:47, Tiemo Hollmann TB via use-livecode wrote: > Hello, > > I feel, that I am missing some basics about URL / libUrl / tsNet. > > I thought, when using the keyword "URL" like in "put URL foo into res" > it > has used under the hood in the past functions from libUrl. And I > thought since LC 8 or so libURL was replaced by tsNet, so when using > today the keyword URL it uses under the hood tsNet. There are two types of URL related functionality in the engine: - those provided by syntax (e.g. load url, url, post etc.) - those provided by libUrl prefixed functions and commands. The syntax works because the engine sends a message (such as loadUrl) through the message path to handle any occurrences of 'load url X'. The other functions and commands because libUrl is just a library stack/backscript. The tsNet external provides a richer set of functionality via a collection of tsNet functions and commands - the tsNet functionality is a superset of that provided by libUrl. When we started bundling tsNet, Charles modified the built-in libUrl so that it consists of a universal library script, and a 'driver' script - the library script provides the public API (both for functions and syntax) and then dispatches to a (private) driver library which actually does the work. tsNet comes with a libUrl driver which implements the whole of libUrl's functionality via tsNet. If you just choose to include libUrl, then you will get the libUrl implementation (which runs using engine socket commands); if you also include tsNet, though, it will install its driver on startup; so libUrl will then be doing all its work vai tsNet. Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ 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
Re: how are URL / libUrl / tsNet related?
Hi Tiemo, On 2017-05-22 09:47, Tiemo Hollmann TB via use-livecode wrote: Hello, I feel, that I am missing some basics about URL / libUrl / tsNet. I thought, when using the keyword "URL" like in "put URL foo into res" it has used under the hood in the past functions from libUrl. And I thought since LC 8 or so libURL was replaced by tsNet, so when using today the keyword URL it uses under the hood tsNet. There are two types of URL related functionality in the engine: - those provided by syntax (e.g. load url, url, post etc.) - those provided by libUrl prefixed functions and commands. The syntax works because the engine sends a message (such as loadUrl) through the message path to handle any occurrences of 'load url X'. The other functions and commands because libUrl is just a library stack/backscript. The tsNet external provides a richer set of functionality via a collection of tsNet functions and commands - the tsNet functionality is a superset of that provided by libUrl. When we started bundling tsNet, Charles modified the built-in libUrl so that it consists of a universal library script, and a 'driver' script - the library script provides the public API (both for functions and syntax) and then dispatches to a (private) driver library which actually does the work. tsNet comes with a libUrl driver which implements the whole of libUrl's functionality via tsNet. If you just choose to include libUrl, then you will get the libUrl implementation (which runs using engine socket commands); if you also include tsNet, though, it will install its driver on startup; so libUrl will then be doing all its work vai tsNet. Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ 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
how are URL / libUrl / tsNet related?
Hello, I feel, that I am missing some basics about URL / libUrl / tsNet. I thought, when using the keyword "URL" like in "put URL foo into res" it has used under the hood in the past functions from libUrl. And I thought since LC 8 or so libURL was replaced by tsNet, so when using today the keyword URL it uses under the hood tsNet. But as Trevor pointed out in my last post "which port is being used with get URL?", he switched from libUrl to tsNet. That sounds like libUrl and tsNet are two alternatives and I can choose, which one I am using to create internet functions. Looking in the dictionary I see the dedicated libURL and tsNet functions, this looks, like I have to use the libURL or tsNet functions directly instead of the keyword URL, but what makes the difference? And what is being used under the hood, when doing "put URL"? Thanks for shedding some light on this. Tiemo ___ 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