IPC stream magic

teclis High Elf <[email protected]>
Newsgroups gmane.comp.micro-kernel.l4.devel
Message-ID <CAN4o2gOe1j0poUdFgcR4jVc80KQ1-ONo7ZQA2fgP3zN12CQK3w@mail.gmail.com>
I have a complex nested structure that looks something like this:

typedef struct struct_A
{
  int i;
  struct struct_B[5];
  int j;
}

using an IPC stream I do:

struct_A a;

ios.put(a);

and then in the server process I do:

struct_A b;

ios.get(b);

( ios is a L4::Ipc::Iostream )

and magically my complex nested structure reappears with all the data
intact in the server process running in another address space.

As the IPC Streams are not well documented would someone be able to explain
to me how my complex nested structure got automatically marshalled in the
client and unmarshalled in the server process?

_______________________________________________
l4-hackers mailing list
[email protected]
http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers
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.