Matteo Cypriani
5ffeafb857
[Listener] Option ENABLE_KEEP_MONITOR
...
Add the compile-time option ENABLE_KEEP_MONITOR to enable/disable the
option -K. That allows to make optional the dependency on iwlib.
This option is disabled by default in the Makefiles.
2012-01-09 11:11:30 +01:00
Matteo Cypriani
8c070d482e
Standardise CLI options
...
Make uniform the command-line options of the various programs.
Positioning: delete some useless short options.
2012-01-09 11:11:30 +01:00
Matteo Cypriani
ffd1c1d625
[Listener] Verbose level #4 instead of option -c
...
Add a fourth verbose level to display the captured packets and suppress
the dedicated options -c / -Q.
2012-01-09 11:11:30 +01:00
Matteo Cypriani
39300aaa85
Makefiles: translate help
...
Translate help messages from French.
2012-01-09 11:11:30 +01:00
Matteo Cypriani
a70fc783e2
Makefiles: translate comments
...
Translate all the comments from French.
2012-01-09 11:11:30 +01:00
Matteo Cypriani
fc0ab05620
[Positioning] Fix comments in Stock & Request
2011-12-02 11:44:01 +01:00
Matteo Cypriani
b3b1f8eda2
[Listener] Display the mobile's IP address
...
When displaying the request to send, display the IP address of the
mobile.
Aggregator: clean the code for displaying requests.
2011-11-22 19:59:01 +01:00
Matteo Cypriani
5e0a227905
[Positioning] Only one occurrence of an algorithm
...
If an algorithm name is specified more than once (e.g. once in the
configuration file and once on the command line), the algorithm is
now executed only once.
2011-11-22 15:14:39 +01:00
Matteo Cypriani
6aae51ab97
[Positioning] InputUDPSocket: verbose mode
...
In verbose mode, the received requests are now displayed.
2011-10-27 10:03:07 +02:00
Matteo Cypriani
c84df6d8a8
[lib-client] send_request(): test owl_run
...
Stop sending packets if owl_run is false.
2011-10-25 11:33:47 +02:00
Matteo Cypriani
ac6d5d7854
[Aggregator] Fix position endianess
...
Convert endianess of the coordinates prior to send a request to the
positioning server.
2011-10-24 17:43:04 +02:00
Matteo Cypriani
8805454b73
Makefile: fix owlps-client target
2011-10-24 14:51:39 +02:00
Matteo Cypriani
1debe92624
[Listener] Fix extract_calibration_data()
2011-10-24 13:56:51 +02:00
Matteo Cypriani
0fcf846988
[Positioning] ReferencePoint: clarify comments
2011-10-21 16:25:54 +02:00
Matteo Cypriani
95555f1c63
[lib-result] Remove -lrt for non-Linux targets
2011-10-20 13:45:01 +02:00
Matteo Cypriani
c158d87b5a
[Aggregator] Fix request display
2011-10-13 15:43:41 +02:00
Matteo Cypriani
603293c5f9
[Listener] Fix request display
...
Use owl_mac_bytes_to_string_r() instead of owl_mac_bytes_to_string()
when there are more than one address to display in a single printf().
2011-10-13 15:40:05 +02:00
Matteo Cypriani
220289e83f
[Positioning] Makefile: display minimal GCC version
...
The help target displays the minimal GCC version required to compile the
program.
2011-08-30 17:06:32 +02:00
Matteo Cypriani
12624f6fd3
[Positioning] OutputNetworkSocket: missing #include
...
Add missing #include for BSD.
2011-08-30 17:00:35 +02:00
Matteo Cypriani
33167601bf
Update TODO
2011-08-27 09:18:16 +02:00
Matteo Cypriani
91609a40fe
[Client] Use libowlps-resultreader
...
Use functions from libowlps-resultreader in receive_position(). By the
way, this function is still not really useful, as we do not verify that
the received result correspond to the set request.
2011-08-27 09:18:16 +02:00
Matteo Cypriani
b22a42a524
[Client] Fix the request loop
...
8bec37c4
caused the non-flood mode to flood.
2011-08-27 09:18:16 +02:00
Matteo Cypriani
31bea165c5
[lib] create*socket(): return standard error code
2011-08-26 11:29:44 +02:00
Matteo Cypriani
c52321a52b
[UDP-HTTP] Use error codes from owlps.h
2011-08-26 11:27:37 +02:00
Matteo Cypriani
3fec57b1ae
Move all error #defines in owlps.h
2011-08-26 11:09:41 +02:00
Matteo Cypriani
7432716a3c
[UDP-HTTP] Fix memory leak in free_result_list()
2011-08-26 10:25:40 +02:00
Matteo Cypriani
a3c16211c2
Use owl_msleep() everywhere
2011-08-24 15:41:17 +02:00
Matteo Cypriani
98609d146d
[lib] Add owl_msleep()
...
On *BSD, usleep() does not accept an argument greater than 1'000'000 (1
second). owl_msleep() decomposes its arguments to use sleep() and
usleep() calls.
2011-08-24 15:40:34 +02:00
Matteo Cypriani
40bc6d0b59
[Listener] Fix reception timestamp
...
struct pcap_pkthdr.ts is host-endian, not net-endian, so we have to
convert it to net-endianess when reading it from the packet.
2011-08-24 14:05:16 +02:00
Matteo Cypriani
8bec37c4ad
[Client] Improve the request loop
...
In flood mode, avoid sending a last request when the program is stopped.
2011-08-24 13:39:01 +02:00
Matteo Cypriani
d2f0ad78e5
Makefile: allow to define the make command
...
In the global Makefile, allow to redefine the 'make' command with the
variable MAKE.
This is useful on *BSD: gmake MAKE=gmake
2011-08-24 13:39:01 +02:00
Matteo Cypriani
b57bf543c7
[Positioning] Fix config parsing memory leaks
...
Do not use exit() from
UserInterface::print_information_and_exit_if_requested(), set owl_run to
false instead. This function is renamed print_information().
2011-08-24 13:39:01 +02:00
Matteo Cypriani
1a98cf44b2
[Aggregator] Fix config parsing memory leaks
...
Same thing as for the Listener: avoid using exit(), prefer return an int
value instead.
2011-08-24 13:39:01 +02:00
Matteo Cypriani
8f48a22482
[Listener] Fix config parsing memory leaks
...
The configuration parsing function could call exit() (e.g. with -h, -V,
or in case of error), implying a memory leak. This is fixed.
Additionally, minor cleaning in the configuration functions.
2011-08-24 13:39:01 +02:00
Matteo Cypriani
a301c87c1d
[Positioning] Fix segfault when ignoring AP RP
...
This commit fixes a segfault that occurred in certain circumstances with
the option positioning.radar-ignore-ap-reference-points activated. The
bug was introduced with this option in 0da98cdb
.
2011-08-23 19:58:49 +02:00
Matteo Cypriani
ff17c92bfa
[lib-client] Change the prefix for "owl_"
...
Use the prefix "owl_" instead of "owlclient_".
2011-08-23 19:58:49 +02:00
Matteo Cypriani
32d8a04ad5
[lib-result] Rename to libowlps-resultreader
...
After all, this is not really UDP-specific.
2011-08-23 19:58:49 +02:00
Matteo Cypriani
3a38d2bc1e
[UDP-HTTP] Improve free_results_list()
2011-08-23 19:58:49 +02:00
Matteo Cypriani
46e295dc09
[UDP-HTTP] Init. TCP socket in a separate function
...
Initialise the TCP socket in the new function. This is to avoid exit()
in the thread (memory leak).
2011-08-23 19:58:49 +02:00
Matteo Cypriani
a7bfa7eb07
[UDP-HTTP] Display a message if called with args
...
This is mainly to avoid a "unused variable" message when compiling.
2011-08-23 19:58:49 +02:00
Matteo Cypriani
8cc05d718c
[lib-result] Do not perror() if owl_run is false
...
owl_receive_position() do not print the error message when owl_run is
false. This is to avoid an error message when a program is stopped.
2011-08-23 19:58:49 +02:00
Matteo Cypriani
632858155a
[UDP-HTTP] Cancel the TCP thread
...
Cancel the TCP thread before to join it, because of the blocking recv()
call.
2011-08-23 19:58:49 +02:00
Matteo Cypriani
adc05b98c0
[UDP-HTTP] Handle new request "ReadResults"
2011-08-23 19:58:49 +02:00
Matteo Cypriani
73494defe6
[lib-result] Add the number of algorithms
...
Add the field nb_results to owl_result, and change the functions to
handle it.
2011-08-23 19:58:49 +02:00
Matteo Cypriani
c2aaa3af15
[UDP-HTTP] Big refactoring
...
Create owlps-udp-to-http.h, rename variables, refactor functions, etc.
2011-08-23 19:58:49 +02:00
Matteo Cypriani
177bd6284c
[lib-result] #define "simple CSV" string sizes
...
owlps.h: #define the coordinate string size.
2011-08-23 19:58:49 +02:00
Matteo Cypriani
ee02f26d8a
[UDP-HTTP] Change and fix SimpleResults format
...
Use owl_result_to_csv_simple() from libowlps-result.
2011-08-23 19:58:49 +02:00
Matteo Cypriani
6160eb9c98
[UDP-HTTP] Makefile: fix static
...
Add missing -pthread.
2011-08-23 19:58:49 +02:00
Matteo Cypriani
3626a21f99
[lib-result] Add simplified CSV format functions
...
Add functions owl_result_to_csv_simple() and
owl_algorithm_result_to_csv_simple(), that convert an owl_result and an
owl_algorithm_result to a CSV string, in a simplified format.
2011-08-23 19:58:49 +02:00
Matteo Cypriani
e77ad8fb0f
Add owlps-udp-to-http
...
This new module allows to get the results sent by the positioning
server with HTTP queries.
See the heading comment in owlps-udp-to-http.c.
2011-08-23 19:58:49 +02:00