Commit Graph

18 Commits

Author SHA1 Message Date
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
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
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
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
70a9623a48 Remove message queues
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-05-28 13:41:04 +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
1af214d91d Try and improve the portability on bsd variants.
Also add a QB_IPC_NATIVE type that selects the best ipc type available.

Signed-off-by: Angus <angus@anguss-mac-mini>
2012-03-24 22:43:37 +11:00
Angus Salkeld
0d21be245b ARRAY: save memory (in the bins array) and allow holes in the array
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-02-22 17:30:19 +11:00
Angus Salkeld
293813552b Don't mix enums (QB_TRUE/TRUE)
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-02-08 22:00:49 +11:00
Angus Salkeld
5d8c96314e Allow the array to automatically grow.
this makes it a bit friendlier to use, as
the user will not have to call qb_array_grow().

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-01-04 21:40:03 +11:00
Fabio M. Di Nitto
9f5d0aebbb Fix some sparc test failures.
I (Angus) have changed some of Fabio's changes.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2011-12-22 13:56:20 +11:00
Angus Salkeld
dfe624f5a9 examples: add ipc client/server
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2011-10-23 22:40:26 +11:00