README 1.01 KB
Newer Older
Sven Robertz's avatar
Sven Robertz committed
1
This is a very simple example with one labcomm file (simple.lc) defining two samples.
Sven Robertz's avatar
Sven Robertz committed
2
Example source code: Encoders and decoders written in Java and C.
Sven Robertz's avatar
Sven Robertz committed
3
4
	Encoder.java
	Decoder.java
Sven Robertz's avatar
Sven Robertz committed
5
6
        example_encoder.c
        example_decoder.c
Sven Robertz's avatar
Sven Robertz committed
7
8
9
And simple scripts
	compile.sh 	- first runs the LabComm compiler and then compiles Encoder and Decoder
	run.sh 		- runs, as expected Encoder and then Decoder
Sven Robertz's avatar
Sven Robertz committed
10

Sven Robertz's avatar
epsilon    
Sven Robertz committed
11
12
the datagram directory contains the same example, but over datagram (UDP and raw etherne )protocols.

Sven Robertz's avatar
Sven Robertz committed
13
14
15
When running compile.sh, Java and C files for the two samples defined in simple.lc will
be generated in the gen directory.

Sven Robertz's avatar
Sven Robertz committed
16
17
18
run.sh will then run first the encoder, writing to encoded_data, and then a
decoder, reading from the previously written encoded_data written (in Java and
C, respectively).
Sven Robertz's avatar
epsilon    
Sven Robertz committed
19
20
21
22
23

NB! Before trying to build and run examples, make sure you have built the LabComm compiler
by running "ant jar" in the main directory (../../ seen from here) and compiled the labcomm
descriptions needed. The compile.sh script does this.