<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 11/12/2016 23:49, Alex Rousskov
wrote:<br>
</div>
<blockquote
cite="mid:2b55e223-87c7-452c-9d66-10957fc6271e@measurement-factory.com"
type="cite">
<pre wrap="">On 12/11/2016 07:17 AM, Georgios Petasis wrote:
</pre>
<blockquote type="cite">
<pre wrap="">With ecap-tcl you can adapt content with code written in Tcl.
<a class="moz-txt-link-freetext" href="https://github.com/petasis/ecap-tcl">https://github.com/petasis/ecap-tcl</a>
</pre>
</blockquote>
<pre wrap="">
An eCAP Tcl wrapper is a valuable contribution, thank you! If you do not
mind, I will add a link to your Github project from the e-cap.org site.</pre>
</blockquote>
Of course, please add the link.<br>
<blockquote
cite="mid:2b55e223-87c7-452c-9d66-10957fc6271e@measurement-factory.com"
type="cite">
<pre wrap="">
FWIW, it was not clear to me what the current limitations of the wrapper
are: Can Tcl adapters utilize all APIs offered by the official C++ eCAP
library? Please consider documenting that if you have not already.</pre>
</blockquote>
Right now, adapters written in Tcl can receive 5 "events": <code>wantsUrl,
</code><code>actionStart, </code><br>
<code>contentAdapt, </code><code>contentDone, </code><code>actionStop.
From these they can see/change/remove headers.<br>
</code>
<blockquote
cite="mid:2b55e223-87c7-452c-9d66-10957fc6271e@measurement-factory.com"
type="cite">
<pre wrap="">
For example, it was not immediately obvious to me whether the Tcl
wrapper already supports asynchronous message analysis documented in
libecap/doc/async.txt and illustrated by the official adapter_async
sample adapter.</pre>
</blockquote>
I am sorry, I was not aware on these resources. When I started (some
months ago), I found a sample adapter that was changing some strings
in the content (had a victim and replacement). I based ecap-tcl on
this.<br>
So, no it does not support asynchronous message analysis.<br>
(I have used the packages for Fedora 23/24, and the doc folder is
not there).<br>
<br>
What I tried to do, is to start a number of Tcl threads, and try to
distribute load to these threads, ensuring that all requests related
to the same action, end up in the same thread.<br>
<br>
I will try to read the new sample adapter, and see if I can update
ecap-tcl.<br>
<br>
BTW, here is a ecap-tcl in action:<br>
<a class="moz-txt-link-freetext" href="http://s864.photobucket.com/user/petasis/media/ecap-tcl/ecap-tcl-in-action.png.html">http://s864.photobucket.com/user/petasis/media/ecap-tcl/ecap-tcl-in-action.png.html</a><br>
It applies some linguistic processing on pages using Tcl code...<br>
<br>
George<br>
<br>
</body>
</html>