/usr/share/doc/libpoe-component-ikc-perl/ikc-architecture.txt is in libpoe-component-ikc-perl 0.2305-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | An IKC client is a session that initiates the connection. An IKC server is a
session that listens for new connections. A given kernel can have both
client and server sessions. Each kernel is it's own process. This gets
confusing. I tend to use remote and local kernel to designate which process
i'm talking about.
The client and server are nearly identical. IKC is more of a peer-to-peer
protocol then a client/server protocol. After negociation, either kernel
can send an event request to the other kernel.
Connection flow-chart (roughly) :
IKC::Server IKC::Client
| |
Wheel::SocketFactory |
| |
+--------------------------------------------+
|
(when connected)
|
IKC::Channel::create_ikc_channel
|
Wheel::ReadWrite (w/ Filter::Line)
|
IKC::Channel does negociation
|
Set filter to Filter::Reference
|
create_ikc_responder()
|
Register foreign kernels
|
+-------------------(IKC::Client) -----------+
| |
Done on_connect sub ref called
|
Done
Data flow after Client <-> Server connection is established :
Driver::SysRW Driver::SysRW Driver::SysRW Driver::SysRW
| | | |
Filter::Reference Filter::Reference Filter::Reference Filter::Reference
| | | |
Wheel::ReadWrite Wheel::ReadWrite Wheel::ReadWrite Wheel::ReadWrite
| | | |
IKC::Channel IKC::Channel IKC::Channel IKC::Channel
| | | |
+------------------+--------+---------+------------------+
|
IKC::Responder
|
All other Sessions
Channel negociation (IKC)
Server Client
--<-- HELLO --<--
-->-- IAM KernelName1 -->--
--<-- OK --<--
-->-- IAM OtherName1 -->--
--<-- OK --<--
....(more kernel names)....
-->-- DONE -->--
--<-- IAM KernelName2 --<--
-->-- OK -->--
--<-- IAM OtherName2 --<--
-->-- OK -->--
....(more kernel names)....
--<-- DONE --<--
--<-- FREEZER XML::Storable --<--
... negociating what type of reference serialisation we should use
-->-- NOT -->--
.... server refused
--<-- FREEZER Storable --<--
-->-- OK -->--
.... server accepted
--<-- WORLD --<--
-->-- UP -->--
Negociation is now over and both sides switch to Filter::Reference.
NOTE : last message *has* to come from server
Channel negociation (IKC0)
Server Client
--<-- SETUP KernelName1,KernelName2,...;FREEZER Storable --<--
-->-- SETUP KernelName1,KernelName2,...;FREEZER Storable -->--
Negociation is now over and both sides switch to Filter::Reference.
|