summaryrefslogtreecommitdiff
path: root/x11/ipc/DESIGN
Unidiff
Diffstat (limited to 'x11/ipc/DESIGN') (more/less context) (ignore whitespace changes)
-rw-r--r--x11/ipc/DESIGN42
1 files changed, 42 insertions, 0 deletions
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 @@
1This is the design of our Opie PDA Communication
2Protocol
3It's main purpose is to be src compatible with QCOP
4from TT and Qtopia. It's main target is to be used
5as a QCOP replacement for the X11 Windowing System.
6
7We heavily use unix domain sockets for the internal
8communication.
9We've one socket in $HOME/.opie.cop which is the
10server socket. We will communicate with the use
11of QDataStream and QByteArray.
12Internally QByteArries will be copied from the client
13to the server
14
15A package is looking similiar to this one
16
17int packet_type; // Register, Unregister, Call, Method, Reply, RegisterChannel, UnregisterChannel
18QString channel;
19QString header
20QByteArray packet
21
22Server PART:
23We keep the fds together with a list of Channels
24QMap<QString,QValueList<int>> int is the fd and QString is the channel
25name
26this makes the isRegistered stuff more easy to manage
27
28
29Client:
30RPC is currently not enabled but will be available in future versions
31I do not want to add it otherwise I'll stick too tight
32to this implementation.
33We currently only support send and forget
34isRegistered will be taken care of the client side. We can not
35use the X WindowSystem for that
36
37
38I hope this helps... be sure to look at the code
39I try to comment it
40and now go to the hacking ;)
41
42-zecke 30.09.02 \ No newline at end of file