transport: added custom data and raw modes to transport/messaging layer.
authorKrisztian Litkey <krisztian.litkey@intel.com>
Fri, 18 May 2012 07:10:09 +0000 (10:10 +0300)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Fri, 25 May 2012 14:52:30 +0000 (17:52 +0300)
commitc4ac011313c2ce616d01a687286d796f8795a202
tree83ddc3377314251841572cafaaed254d4b7e4a67
parent259a8db10ca449f92433618d81f9d81b0da0b644
transport: added custom data and raw modes to transport/messaging layer.

In addition to generic messages and the default generic message mode,
you can now put a transport into custom data and raw modes. In raw more
the transport acts as a transparent bitpipe ie. basically like a normal
socket. In custom data mode, you first describe and register the data
structures you want to pass over the transport with the messaging layer
and then you can directly pass any of these data structures to the
appropriate sending/receiving routines and the messaging layer will
automatically take care of the encoding/decoding for you.
15 files changed:
build-aux/gen-linker-script
src/common/dgram-transport.c
src/common/msg.c
src/common/msg.h
src/common/refcnt.h [new file with mode: 0644]
src/common/stream-transport.c
src/common/tests/dgram-test.c
src/common/tests/msg-test.c
src/common/tests/stream-test.c
src/common/tests/tcp-test.c
src/common/tests/udp-test.c
src/common/transport.c
src/common/transport.h
src/console-client/client.c
src/plugins/plugin-console.c