Commit Graph

69 Commits

Author SHA1 Message Date
Ferenc Wágner
f3a667818d New upstream version 2.0.9 2025-10-04 20:23:54 +02:00
Chrissie Caulfield
1fae15eadc
Solaris port (#504)
and a few misc bug fixes
2025-07-31 16:17:21 +01:00
Ferenc Wágner
8502569c38 New upstream version 2.0.7 2023-06-23 22:26:58 +02:00
Ferenc Wágner
b91c3e4791 New upstream version 2.0.4 2021-11-21 13:42:35 +01:00
Ferenc Wágner
61203efbb2 New upstream version 2.0.2 2020-12-25 11:55:09 +01:00
Ferenc Wágner
e06b1b88ad New upstream version 2.0.1 2020-09-22 17:01:30 +02:00
Chrissie Caulfield
7556204b27 Add the option of hi-res (millisecond) timestamps (#329)
* log: Add high-resolution timestamp option for log files

This adds the %T option to the log format for millisecond timestamps. There's a feature test macro QB_FEATURE_LOG_HIRES_TIMESTAMPS so that applications know that they are available.

Because this changes the internal logging API, applications that use custom loggers will also need to change their custom logging destinations to take a struct timespec instead of a time_t. The above feature test macro will help in deciding which is appropriate.
2018-11-09 09:56:44 +00:00
Ferenc Wágner
0ac153b279 New upstream version 1.0.3 2018-01-04 22:22:30 +01:00
Jan Pokorný
ef5b1cf4cb
warnings cleanup: Wformat: sign-correct PRIu32 specifiers as appropriate
Looks like these are not accepted with splint checker.  Also fix some
other minor type -- print format specifier discrepancies.

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
2017-12-21 01:50:15 +01:00
Christine Caulfield
5889f1ea46 tests: make qb logging under check always dispose the memory
examples/tests: make qb logging dispose the memory

A.k.a. "be a good example of using this very library".

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
2017-09-18 10:30:40 +01:00
Ferenc Wágner
8fad8acb67 configure: restrict nsl lib to where it's actually needed 2016-12-12 11:47:21 +01:00
Ferenc Wágner
1a9b4128e4 configure: restrict socket lib to where it's actually needed 2016-12-12 11:47:21 +01:00
Ferenc Wágner
e0550bfe40 Imported Upstream version 1.0.1 2016-12-04 20:53:34 +01:00
Jan Pokorný
c1c26c94cb
Low: sanitize import of <qb/qbarray.h> symbols 2016-10-17 17:25:50 +02:00
Ferenc Wágner
c222171511 Imported Upstream version 1.0 2016-06-18 14:33:26 +02:00
Jan Pokorný
6e6791113f
example: simplelog supports -o (for stdout sink) 2016-02-15 16:52:11 +01:00
Adrian Vondendriesch
d18d1f1578 Imported Upstream version 0.17.2.real 2015-09-22 10:27:02 +02:00
Christoph Berg
37c156628d Imported Upstream version 0.17.2 2015-09-07 15:07:05 +02:00
David Vossel
be3a2d32a5 Low: examples: fix race condition in glib mainloop example 2015-04-24 18:07:05 -04:00
Christoph Berg
2b262fd5db Imported Upstream version 0.17.1 2015-04-18 19:34:38 +02:00
Christoph Berg
e75dad6d2d Imported Upstream version 0.17.0 2015-04-18 12:01:27 +02:00
Christoph Berg
53089e7e95 Imported Upstream version 0.16.0 2015-04-18 12:01:25 +02:00
Christoph Berg
284f95ea30 Imported Upstream version 0.14.4 2015-04-18 12:01:25 +02:00
Christoph Berg
296e33b732 Imported Upstream version 0.14.3 2015-04-18 12:01:24 +02:00
Christoph Berg
8da8cdf17a Imported Upstream version 0.14.2 2015-04-18 12:01:23 +02:00
Christoph Berg
85f75e9d49 Imported Upstream version 0.11.1 2015-04-18 12:01:21 +02:00
zouyu
bb70e2770f fix invalid option when run 'ipcclient -h' 2014-06-30 16:36:41 +08:00
David Vossel
ecff303865 Low: example: Update client/server example to use server enforced buffer size 2013-11-18 22:29:15 -06:00
David Vossel
1e1397fb22 Low: ipcserver.c: Fix example server's glib mainloop implementation 2013-07-23 20:29:20 -05:00
David Vossel
a78526a445 Fixes detect disconnect on send for tcp example 2013-07-22 18:26:50 -05:00
David Vossel
1462e80af4 Fixes less-than-zero comparision of unsigned int 2013-07-22 17:00:11 -05:00
David Vossel
c0cb0a3ecb Low remove ref-count error in example ipcserver. 2013-06-28 16:24:55 -05:00
Angus Salkeld
6d7da39866 Remove some test code mistakenly committed to the example program.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-04-24 10:31:52 +10:00
Angus Salkeld
f54764e1ec IPC: make each connection ref the owning service
This is because the connection functions use the c->service pointer
and this needs to be mirrored in the reference counting.

The service can only be free'd when all connections are destroyed
and the user as unreferenced all previously referenced connections
and the service.

Fixes #62
Thanks to Jan Friesse for the reproducer
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-04-22 12:03:26 +10:00
Angus Salkeld
ca9d9dd31f Example: make the blackbox example more practical.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-01-15 11:50:25 +11:00
Angus Salkeld
c533b24efa example/test: check for error in qb_ipc_run()
Hopefully all of them this time.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-11-08 20:53:21 +11:00
Angus Salkeld
ecf3d6f854 example: check for error in qb_ipc_run()
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-11-08 20:45:57 +11:00
Angus Salkeld
92b3b415b5 openbsd requires netinet/in.h before arpa/inet.h
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-08-29 22:40:38 +10:00
Angus Salkeld
43b49dfda9 Remove uses of timersub and use qb_util_stopwatch
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-08-28 22:05:09 +10:00
Fabio M. Di Nitto
5e16bcd004 build: fix libqb.pc creation and make maintainer-clean
LIB_RT is unnecessary around. AC_CHECK_LIBS will do the right thing

similar for the other libs that are all exported via LIBS

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
2012-08-27 15:07:36 +02:00
Angus Salkeld
b9f8ec34df LOG: fix threaded logging.
This has been broken for a year - yikes!
Thanks to Voznesensky Vladimir for spotting it.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-06-14 11:01:52 +10:00
Angus Salkeld
ad05e6323d ipc example: add -e (events) option
use events instead of responses

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-06-06 15:08:04 +10:00
Angus Salkeld
ca9fbe0246 example: make the priority uint8_t
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-05-28 21:51:13 +10:00
Angus Salkeld
70a9623a48 Remove message queues
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-05-28 13:41:04 +10:00
Angus Salkeld
a8405ab06d blackbox: fix the print_from_file()
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-05-24 19:22:55 +10:00
Angus Salkeld
c56427e19e LOG: accept NULL strings into the blackbox
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-05-24 14:16:54 +10:00
Angus Salkeld
257897e38a Add benchmark option (-b) to examples/ipcclient
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-05-21 08:34:59 +10:00
Angus Salkeld
e3d8078f0a Add some special commands into the ipc example
type "events" and the server will send 10 events.
type 'kill' into the client and this will simulate the server dying.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-04-30 15:49:42 +10:00
Angus Salkeld
ddcff095b5 Run ./Lindent in the examples directory
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-04-26 21:41:44 +10:00
Angus Salkeld
4bfe2fbd14 Add some debug code to the ipcclient example
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-04-26 21:36:49 +10:00