diff options
Diffstat (limited to 'doc/ivy-c-6.html')
-rw-r--r-- | doc/ivy-c-6.html | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/doc/ivy-c-6.html b/doc/ivy-c-6.html index 94b9e6e..c85da04 100644 --- a/doc/ivy-c-6.html +++ b/doc/ivy-c-6.html @@ -12,9 +12,24 @@ Next <A HREF="ivy-c.html#toc6">Contents</A> <HR> <H2><A NAME="s6">6. Conventions for writing applications</A></H2> - -<P>... the environment variable <CODE>IVYBUS</CODE> ..., ... the option <CODE>-b</CODE> ... +<H3>6.1 Default bus</H3> +By default, the bus used is <em><strong>127.255.255.255:2010 </em></strong> ie the application will be connected on the port 2010 of the local machine it runs on.</p> +<P>You can set the bus to be used by setting the environment variable <CODE>IVYBUS</CODE> or by implementing the option <CODE>-b</CODE> in the application.</P> <P> +<H3>6.2 Connexion to ivy</h3> +<p>By convention, the message <em> application-name READY </em> is to be used when initializing the connexion to ivy. +<p>Example: +<p><CODE>IvyInit ("TOTO", "TOTO READY",...)</CODE> +<H3>6.3 Syntax of messages</h3> +The syntax of the messages exchanged is totally free. However, the following convention is recommended: +<menu> +<li>The message syntax is <CODE>Subject Attributes</CODE></li> +<li>A Subject is an object, named in a hierarchical form: <CODE>ObjectClass1:object1.ObjectClass2:object2...</CODE></li> +<li>Attributes are pairs <CODE>(attribute-name, value)</CODE></li> +</menu> +Example: +<p><CODE>AIRCRAFT:LIB720 Moved lat=46.1697 lon=2.0844 vx=-36 vy=-463 afl=330 rate=0 heading=184 ground_speed=465 +mach_speed=0 tendance=0 time=24600 cfl=330</CODE> <HR> Next <A HREF="ivy-c-5.html">Previous</A> |