core : README
parent
da51d3ef3d
commit
8ef93c2715
|
@ -2,25 +2,27 @@
|
||||||
|
|
||||||
## what the programs should do and how they interact
|
## what the programs should do and how they interact
|
||||||
|
|
||||||
* service : application providing a feature to others (windows, audio, …)
|
* service : application providing a feature to others (windows, audio, …)
|
||||||
* program : specific application (browser, instant messaging, …)
|
* program : specific application (browser, instant messaging, …)
|
||||||
|
|
||||||
|
* [service] : service name
|
||||||
|
* [index] : process index in the program point of view
|
||||||
|
* [pindex] : process index in the service point of view
|
||||||
|
|
||||||
* <service> : service name
|
1. the service creates a pipe, named /tmp/[service]
|
||||||
* <index> : process index in the program point of view
|
2. the program creates pipes named /tmp/$pid-[index]-{in,out}
|
||||||
* <pindex> : process index in the service point of view
|
3. the program prints in the pipe /tmp/[service] : $pid-[index] version
|
||||||
|
4. depending on the configuration and service type, the service will
|
||||||
1. the service creates a pipe, named /tmp/<service>
|
|
||||||
2. the program creates pipes named /tmp/$pid-<index>-{in,out}
|
* thread, to spare resources
|
||||||
3. the program prints in the pipe /tmp/<service> : $pid-<index> version
|
* fork, not to compromise the security
|
||||||
4. depending on the configuration and service type, the service will
|
|
||||||
* thread, to spare resources
|
5. the service prints [pindex] in /tmp/$pid-[index]-in
|
||||||
* fork, not to compromise the security
|
|
||||||
5. the service prints <pindex> in /tmp/$pid-<index>-in
|
|
||||||
|
|
||||||
## pure "networking" view (what should go in the pipes)
|
## pure "networking" view (what should go in the pipes)
|
||||||
|
|
||||||
1. the program prints in the pipe /tmp/<service> : $pid-<index> version
|
1. the program prints in the pipe /tmp/[service] : $pid-[index] version
|
||||||
2. the service prints <pindex> in /tmp/$pid-<index>-in
|
2. the service prints [pindex] in /tmp/$pid-[index]-in
|
||||||
|
|
||||||
# messages format
|
# messages format
|
||||||
|
|
||||||
|
@ -28,14 +30,14 @@ QUESTION : no CBOR for 1 & 2, or CBOR everywhere ?
|
||||||
|
|
||||||
## overview
|
## overview
|
||||||
|
|
||||||
<type> : value
|
format "type : value"
|
||||||
|
|
||||||
<type> will be a simple byte :
|
type will be a simple byte :
|
||||||
|
|
||||||
* <0 - 15> : control, meta data
|
* <0 - 15> : control, meta data
|
||||||
* <16 - 127> : later use
|
* <16 - 127> : later use
|
||||||
* <128 - 255> : application specific (windowing system, audio system, …)
|
* <128 - 255> : application specific (windowing system, audio system, …)
|
||||||
|
|
||||||
## CBOR table (draft)
|
## CBOR table (TODO)
|
||||||
|
|
||||||
index | semantic
|
index | semantic
|
||||||
|
|
Reference in New Issue