Commit Graph

45 Commits

Author SHA1 Message Date
Matteo Cypriani bce8896b4b Add explicit padding for all the structs
Indicate padding bytes explicitly in all the structures. Some of the
structures could have their size reduced by reordering their fields by
size (especially in owlps.h).
2016-11-23 17:02:21 -05:00
Matteo Cypriani bc6ec14fa8 Update COPYRIGHT.t2t URL 2016-11-03 22:00:33 -04:00
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 333be113d6 [UDP-HTTP] Base 10 for numbers from command line 2013-09-27 15:27:32 -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 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 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 5ddca24738 Print exit message only in verbose mode
Update the exit message printing in all the modules:
- print on standard error
- print only in verbose mode
- use "exiting" instead of "end"
2013-06-12 17:18:46 -04:00
Matteo Cypriani ca918af0ab [UDP-HTTP] Stop using OWLPS_DEBUG 2013-06-12 09:38:38 -04:00
Matteo Cypriani 80fd5b287b Update and centralise copyright information 2013-05-29 13:19:06 -04:00
Matteo Cypriani 9aa9099e6a DEBUG compile-time option -> OWLPS_DEBUG
The former DEBUG compilation-time option was renamed OWLPS_DEBUG to be
consistent with the other options.
2013-05-23 12:24:11 -04:00
Matteo Cypriani 8e46aae55c CMake: test for the presence of POSIX threads
We chose a centralised approach, since threads are needed in several
modules: the find_package() is done only once in the rood directory.
Not sure it's the best approach though, but this test is several lines
long so doing that avoids duplication of this code.
2013-05-22 18:36:21 -04:00
Matteo Cypriani 1cb5742ef9 CMake: rework compilation/link flags
- Default compiler and linker flags were added silently. They are now
  set in the cache if no previous values are present.
- Debug flags and regular flags have been merged.
- Position-independent code (doesn't appear in the cache because CMake
  lacks variables like CMAKE_EXE_COMPILE_FLAGS):
  - Shared libraries are compiled with -fPIC.
  - Executables and static libraries are compiled with -fPIE.
  - Executables are linked with -pie -fPIE.
2013-05-22 18:36:21 -04:00
Matteo Cypriani c41f6d9547 CMake: add installation targets 2013-05-22 18:36:21 -04:00
Matteo Cypriani 4264210dcc CMake: add static targets
The pseudo-targets "semistatic" and "static" were added to build
everything in semistatic or static mode.
2013-05-22 18:36:20 -04:00
Matteo Cypriani 688580c7d2 CMake: don't compile semistatic by default
Exclude semistatic targets from the 'all' target.
2013-05-22 18:36:20 -04:00
Matteo Cypriani 4467fcd52c Initial CMake setup 2013-05-21 14:23:36 -04:00
Matteo Cypriani 005e5da12e Delete Makefiles 2013-05-20 17:08:33 -04:00
Matteo Cypriani 0614b52219 [lib] Stop defining owl_bool (use stdbool.h)
We don't define our own boolean type in owlps.h any more: bool (from
stdbool.h) is used instead.
2013-05-15 15:46:13 -04:00
Matteo Cypriani 64c2ac9a58 Makefiles: move OS detection in common.mk
This fixes compilation on BSD.
2013-04-30 16:50:14 -04:00
Matteo Cypriani d1c64212d8 Test malloc/realloc return values 2012-11-03 16:51:13 +01:00
Matteo Cypriani 8455dd0d74 Add copyright & license information
Add the file COPYRIGHT, the CeCILL license's text, and update the source
files' headers with the copyright and license information.
2012-11-03 14:52:33 +01:00
Matteo Cypriani 316db76861 Makefiles: add common-rules.mk, drop openwrt files
This is the sequel of the work on the Makefiles' unification.
2012-05-24 14:19:04 +02:00
Matteo Cypriani 92485f3f67 Add common.mk
Adapt all the Makefiles to use it.
Rename all the Makefile_atheros_openwrt-10.03 to
Makefile_atheros_openwrt.
2012-05-09 15:55:17 +02:00
Matteo Cypriani d5e2c975ae Rename Positioning -> Positioner
To be consistent with the other modules, the positioning server must be
called OwlPS Positioner instead of Positioning, and the executable
owlps-positionerd (even if the daemon mode is not implemented yet).
That's a big commit for a tiny change.
2012-02-06 17:48:43 +01:00
Matteo Cypriani 6b7e5668fa Add/update headers on the top of each source file 2012-02-06 16:44:09 +01:00
Matteo Cypriani 2c1697b78a Enable compilation on GNU/kFreeBSD 2012-02-06 13:27:05 +01:00
Matteo Cypriani 61124e4cfc Makefiles: test CC prior to surcharge it
Verifies that CC is at its default value prior to try to surcharge it
with colorgcc.
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 c52321a52b [UDP-HTTP] Use error codes from owlps.h 2011-08-26 11:27:37 +02:00
Matteo Cypriani 7432716a3c [UDP-HTTP] Fix memory leak in free_result_list() 2011-08-26 10:25:40 +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 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 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 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 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