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