Matteo Cypriani
69e8b49300
Mark arguments as const as needed in C programs
...
This was already done in the libraries, but not in the programs.
2013-10-02 11:28:48 -04:00
Matteo Cypriani
ef2b4e9e58
[Listener] Add an assert, improve 2 comments
2013-10-02 10:51:55 -04:00
Matteo Cypriani
0b2835c744
[doc] Add owlps-positionerd.t2t
2013-10-01 13:54:20 -04:00
Matteo Cypriani
333be113d6
[UDP-HTTP] Base 10 for numbers from command line
2013-09-27 15:27:32 -04:00
Matteo Cypriani
c4cf57c903
[Listener] Test numbers from the command line
...
Check the return value of relevant calls to strtol().
Force base 10 when reading integers from the command line.
2013-09-27 15:22:57 -04:00
Matteo Cypriani
89f0b583e3
[Aggregator] Test numbers from the command line
...
Check the return value of most calls to strtol().
Force base 10 when reading integers from the command line.
2013-09-27 15:22:48 -04:00
Matteo Cypriani
ed690ad196
[Client] Test numbers from the command line
...
Check the return value of most calls to strto*().
Force base 10 when reading integers from the command line.
2013-09-27 15:22:36 -04:00
Matteo Cypriani
2d6b4c11d4
[lib-result] read_*_field(): quit printing errors
...
owl_read_*_field() do not print detailed error messages any more, but
return a different error code depending on the error that occurred.
2013-09-27 11:38:58 -04:00
Matteo Cypriani
b39ccb8f1e
[lib-result] Check validity of the request type
2013-09-25 15:05:03 -04:00
Matteo Cypriani
d995cdfc7d
[lib] Add macro OWL_IS_REQUEST_TYPE()
...
This macro allows to check if a given number is a valid request type.
2013-09-25 15:05:02 -04:00
Matteo Cypriani
669f5b1064
[lib-result] mobile_mac_addr as static buffer
...
The mobile_mac_addr field of the struct _owl_result is now a static char
buffer instead of being dynamically-allocated. When reading the MAC
address, it is also more thoroughly verified.
2013-09-25 11:34:26 -04:00
Matteo Cypriani
5d71ca9ae2
[lib-result] Add read_float_field() and use it
...
This function is similar to owl_read_long_field() but reads a float and
doesn't allow to choose an alternative field delimiter.
2013-09-24 17:03:22 -04:00
Matteo Cypriani
21e624728c
[lib-result] Add read_long_field() and use it
...
This new function allows to read a CSV field containing an integer value
and checks the value read.
2013-09-24 17:01:54 -04:00
Matteo Cypriani
d4cd2e6a63
[doc] CMake: install man pages
2013-09-23 17:03:51 -04:00
Matteo Cypriani
703e78ff1a
[scripts] Add CMakeLists.txt (install files)
...
Add installation targets for the scripts and Perl modules.
2013-09-23 17:03:51 -04:00
Matteo Cypriani
51837c0ac1
[lib-result] Fix some comments
2013-09-23 17:03:51 -04:00
Matteo Cypriani
e5883d99d5
Finish supporting getaddrinfo()
...
- For static buffers, use a size suited for host names and not only IP
addresses.
- Change variable names.
- Adapt usage messages and documentation.
2013-09-23 17:03:51 -04:00
Matteo Cypriani
050026d61f
[UDP-to-HTTP] Use getaddrinfo() to open TCP socket
2013-09-23 17:03:50 -04:00
Matteo Cypriani
75e04cfc17
Quit handling useless network client structures
...
It is useless to handle a client structure on recvfrom() or accept()
when nothing is done with this information.
Changed in Aggregator, Listener, Positioner and UDP-to-HTTP.
2013-09-23 17:03:50 -04:00
Matteo Cypriani
49066f451b
[lib] getaddrinfo() in create_udp_listening_socket()
2013-09-23 17:03:50 -04:00
Matteo Cypriani
25cc1ee67a
[lib] getaddrinfo() in create_udp_trx_socket()
...
Use getaddrinfo() to resolve names in owl_create_udp_trx_socket(). The
client_description parameter has been removed from the function's
synopsis.
2013-09-23 17:03:50 -04:00
Matteo Cypriani
e58d158286
[Client] Change -F option's behaviour
...
In flood mode, the delay is now counted from the beginning of the
transmission of a request, instead of after the end of the transmission.
The old behaviour is still supported by adding a '+' before the delay
duration on the command line.
2013-09-23 16:10:54 -04:00
Matteo Cypriani
9ca63f0858
[Client] Print config on stdout (not stderr)
2013-09-23 16:10:53 -04:00
Matteo Cypriani
e48724b332
[lib-result] Mark arguments as const consistently
2013-09-23 16:10:53 -04:00
Matteo Cypriani
f10f99634c
[doc] Cosmetic improvements
...
"Options" comes right after "Description", quotes, etc.
2013-09-23 16:10:53 -04:00
Matteo Cypriani
c10b9de1b4
[doc] aggregator and listener: add Files section
2013-09-23 16:10:53 -04:00
Matteo Cypriani
9d02312603
[doc] preproc: translate {{INSTALL_PREFIX}}
...
preproc.sh now translates the {{INSTALL_PREFIX}} string as well as the
{{OWLPS_VERSION}} string. Both values are now obtained from the
corresponding environment variables (OWLPS_VERSION was previously
obtained through a special git command).
2013-09-23 16:10:53 -04:00
Matteo Cypriani
c48ee0c555
[UDP-HTTP] "NoResults" instead of "NoResult"
...
Set the explanation to "NoResults" when a request is received but no
results were read yet.
2013-09-23 16:10:53 -04:00
Matteo Cypriani
5435fd8e68
[doc] Add owlps-udp-to-http.t2t
2013-09-23 16:10:53 -04:00
Matteo Cypriani
82154b9a46
Cosmetic changes in C modules
2013-09-23 16:10:53 -04:00
Matteo Cypriani
bd94f128b3
[Client] check_configuration(): add missing options
2013-09-23 16:10:53 -04:00
Matteo Cypriani
647b025840
[UDP-HTTP] Verbose/quiet command-line options
...
Add options -v and -q to handle verbose and quiet mode.
2013-09-23 16:10:53 -04:00
Matteo Cypriani
d6fb1c04fc
[UDP-HTTP] Command-line options -h, -V, -l, -t
...
Add support for basic command-line options: -h (help), -V (version), and
-l and -t for the port numbers.
2013-09-23 16:10:53 -04:00
Matteo Cypriani
f181087d70
[doc] CMake: handle dependencies for doc_doxygen
...
The doc_doxygen target now depends on the C input files.
2013-09-23 16:10:53 -04:00
Matteo Cypriani
efaf4da6ed
[doc] Somewhat improve Doxygen-generated man pages
...
Fix some problems in the Doxygen-generated man pages (C libraries), the
more noticeable being removing the full path of the files from the
header and synopsis.
2013-09-23 16:10:53 -04:00
Matteo Cypriani
b126cdc98d
[doc] CMake: Perl modules' man pages go to man3
...
The manual pages of Perl modules now go to the man3/ directory instead
of a separate man3perl/ directory.
2013-09-23 16:10:52 -04:00
Matteo Cypriani
3edf06337c
[doc] CMake: rename Perl modules' man pages (::)
...
Perl modules' man pages should be named Foo::Bar.3perl instead of
Foo--Bar.3perl. This is fixed but the solution is incomplete and hacky,
due to a limitation of make: Foo--Bar.3perl is first generated, then
renamed to Foo::Bar.3perl. This breaks the dependencies and
Foo--Bar.3perl will be re-generated at each run of make.
2013-09-23 16:10:52 -04:00
Matteo Cypriani
810d02d5b8
[doc] CMake: more portable clean_doxygen_garbage
...
Use cmake -E remove instead of rm -f.
2013-09-23 16:10:52 -04:00
Matteo Cypriani
c3896662fd
[doc] CMake: force order of Doxygen targets
...
Make sure the doxygen garbage is cleaned after being generated.
2013-09-23 16:10:52 -04:00
Matteo Cypriani
cc121f382e
[doc] CMake: generate man pages from Perl files
...
Generate manual pages from the Perl programs and modules in the scripts/
directory, thanks to pod2man.
2013-09-23 16:10:52 -04:00
Matteo Cypriani
5afecf42ca
[doc] INSTALL: details on libclaw with OpenWrt
2013-09-23 16:10:52 -04:00
Matteo Cypriani
c169bcb5d2
[doc] CMake: don't quit if txt2tags is not found
...
Don't return if txt2tags is not found, so that Doxygen-generated man
pages can be built.
2013-09-23 16:10:52 -04:00
Matteo Cypriani
386c279f6c
[doc] aggregatord: add section CSV format
2013-09-23 16:10:52 -04:00
Matteo Cypriani
935b77e114
[scripts] AggCheck: -n prints total nb of packets
2013-09-23 16:10:52 -04:00
Matteo Cypriani
89cf84403c
[doc] listenerd: add links in the description
2013-09-23 16:10:52 -04:00
Matteo Cypriani
73b71f279d
[doc] Add owlps-aggregatord.t2t
2013-09-23 16:10:52 -04:00
Matteo Cypriani
0650059bca
[Aggregator] Fix usage message
2013-09-23 16:10:52 -04:00
Matteo Cypriani
725d804bc2
[scripts] *.pl: fix synopsis' typesetting
2013-09-23 16:10:51 -04:00
Matteo Cypriani
3bc4c3bb8d
[scripts] AggSetCoord: document batch processing
...
Add an example of shell script to set different coordinates at multiple
line ranges in a single aggregation file.
2013-09-23 16:10:51 -04:00
Matteo Cypriani
e56a718b22
[scripts] AggSetCoord: -I option (backup suffix)
2013-09-23 16:10:51 -04:00