Commit Graph

28 Commits

Author SHA1 Message Date
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 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 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 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 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 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 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