AW: how are URL / libUrl / tsNet related?
Tiemo Hollmann TB
toolbook at kestner.de
Mon May 22 04:34:14 EDT 2017
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?
Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag
von Mark Waddingham via use-livecode
Gesendet: Montag, 22. Mai 2017 10:17
An: How to use LiveCode <use-livecode at lists.runrev.com>
Cc: Mark Waddingham <mark at livecode.com>
Betreff: Re: how are URL / libUrl / tsNet related?
On 2017-05-22 09:47, Tiemo Hollmann TB via use-livecode wrote:
> 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"
> 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
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.
Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
More information about the Use-livecode