Re: Data streaming / sharing from client side in an IPC example

Björn Döbel <[email protected]>
Newsgroups gmane.comp.micro-kernel.l4.devel
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Ajith,

> thank you very much for the kind answer. The solution You provided 
> worked well. The only concern is as You know the data to be send
> can not have a greater size than the L4_UTCB_GENERIC_DATA_SIZE (due
> to UTCB size). So the question is do you have also another solution
> for larger data streaming? (Off course other than sending the data
> by means of various blocks with L4_UTCB_GENERIC_DATA_SIZE)

if splitting data into multiple packets does not suffice for you, you
might consider mapping whole memory pages from sender to receiver
(which in turn allows to build zero-copy scenarios).

An example for this can be found in l4/pkg/examples/libs/l4re/streammap.

There's furthermore the shmc library in l4/pkg/shmc, which allows you
to use shared-memory ring buffers between programs.

Cheers,
Bjoern
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iEYEARECAAYFAlLqKAIACgkQP5ijxgQLUNmxiwCeIN2Ab8f+e3gBCqxWofqKTuVF
uwsAn2s9MPKBxy4+/cxPNm8w1ePLxvED
=30ch
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.