Hi,<div><br></div><div>The CQi spec just defines the binary protocol used by CQi. To make it work, you need to add code</div><div>that makes a socket to cqpserver, writes the right messages, and serializes/deserializes the data</div>
<div>that is passed around.</div><div>To see an example for this, see the java code at</div><div><a href="http://textometrie.svn.sourceforge.net/viewvc/textometrie/trunk/Toolbox/0.4.7/org.textometrie.toolbox/src/java/org/textometrie/searchengine/cqp/CqiClient.java?revision=1167&view=markup">http://textometrie.svn.sourceforge.net/viewvc/textometrie/trunk/Toolbox/0.4.7/org.textometrie.toolbox/src/java/org/textometrie/searchengine/cqp/CqiClient.java?revision=1167&view=markup</a></div>
<div>Javadoc is at:</div><div><a href="http://textometrie.sourceforge.net/doc/Java/org/textometrie/searchengine/cqp/CqiClient.html">http://textometrie.sourceforge.net/doc/Java/org/textometrie/searchengine/cqp/CqiClient.html</a></div>
<div><br></div><div>Best,</div><div>Yannick</div><div><br><br><div class="gmail_quote">On Mon, Aug 2, 2010 at 8:53 PM, Misko Obrenovic <span dir="ltr"><<a href="mailto:dartonja@gmail.com">dartonja@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br><br>I'm using CWB for the past 7 years, and recently I've discovered the new site and this mailing list. You're doing a great job. I'm interested now in CWB on Windows, so I downloaded and tested the cwb-3.1.0-windows-i586.zip. I found a new things like cqpserver and CQi, and started to look more information about them. I saw that textometrie project uses it, I read the cqi_tutorial.pdf, then I tried to modify CQi_spec/MakeInterfaces.perl and generate<br>
CQi specification for C# using settings similiar to those for Java. I got a C# class but I don't know how to use it right. It's a bunch od constants' definitions (readonly static members to be more precised). I didn't understand how these constants can be used as methods, but I tried anyway, testing<br>
CTRL_CONNECT("anonymous", ""); <br>and, of course, got the message that "it can't be invoked". So, I would be much grateful if someone could explain me, or point me some existing documentation that I missed (a short concrete example in C or Java about how to communicate to cqpserver from external application would be the best).<br>
<br>There's another thing I want to consult you, but I leave it for a separate message.<br><br>Thanks in advance for your help,<br><font color="#888888">Misko<br>
</font><br>_______________________________________________<br>
CWB mailing list<br>
<a href="mailto:CWB@sslmit.unibo.it">CWB@sslmit.unibo.it</a><br>
<a href="http://devel.sslmit.unibo.it/mailman/listinfo/cwb" target="_blank">http://devel.sslmit.unibo.it/mailman/listinfo/cwb</a><br>
<br></blockquote></div><br></div>