summaryrefslogtreecommitdiff
path: root/doc/ivy-perl-6.html
blob: 9d31b44395b97713e74651385946c2880cf143ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.7">
 <TITLE>The Ivy C library guide: Conventions for writing applications</TITLE>
 <LINK HREF="ivy-perl-7.html" REL=next>
 <LINK HREF="ivy-perl-5.html" REL=previous>
 <LINK HREF="ivy-perl.html#toc6" REL=contents>
</HEAD>
<BODY>
<A HREF="ivy-perl-7.html">Next</A>
<A HREF="ivy-perl-5.html">Previous</A>
<A HREF="ivy-perl.html#toc6">Contents</A>
<HR>
<H2><A NAME="s6">6. Conventions for writing applications</A></H2>
<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 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>
<A HREF="ivy-perl-7.html">Next</A>
<A HREF="ivy-perl-5.html">Previous</A>
<A HREF="ivy-perl.html#toc6">Contents</A>
</BODY>
</HTML>