From bba0335bbea81519beafb7fec1979a0abbd8a7ea Mon Sep 17 00:00:00 2001 From: zecke Date: Tue, 01 Oct 2002 14:27:17 +0000 Subject: 5th try initial checkin of X11 Opie stuff it features an IPC Server the client is todo this will become the OPIE X11 department including alternative QPEApplication, QCOP replacement --- (limited to 'x11/ipc/DESIGN') diff --git a/x11/ipc/DESIGN b/x11/ipc/DESIGN new file mode 100644 index 0000000..fbe121b --- a/dev/null +++ b/x11/ipc/DESIGN @@ -0,0 +1,42 @@ +This is the design of our Opie PDA Communication +Protocol +It's main purpose is to be src compatible with QCOP +from TT and Qtopia. It's main target is to be used +as a QCOP replacement for the X11 Windowing System. + +We heavily use unix domain sockets for the internal +communication. +We've one socket in $HOME/.opie.cop which is the +server socket. We will communicate with the use +of QDataStream and QByteArray. +Internally QByteArries will be copied from the client +to the server + +A package is looking similiar to this one + +int packet_type; // Register, Unregister, Call, Method, Reply, RegisterChannel, UnregisterChannel +QString channel; +QString header +QByteArray packet + +Server PART: +We keep the fds together with a list of Channels +QMap> int is the fd and QString is the channel +name +this makes the isRegistered stuff more easy to manage + + +Client: +RPC is currently not enabled but will be available in future versions +I do not want to add it otherwise I'll stick too tight +to this implementation. +We currently only support send and forget +isRegistered will be taken care of the client side. We can not +use the X WindowSystem for that + + +I hope this helps... be sure to look at the code +I try to comment it +and now go to the hacking ;) + +-zecke 30.09.02 \ No newline at end of file -- cgit v0.9.0.2