SMILE

SMILE

SMILE is the network protocol for controlling SMILEd. It is TLS-based and runs on port 8931.

Communication flow

The client sends a SmileRequest. The server sends a SmileResponse with the answer. Requests and Responses are to be formatted in the syntax of Haskell’s Show and Read instances.

data SmileRequest = SEcho T.Text
                  | SPing
                  | SRandom RandomSource Int
                  | SLog T.Text LogTag T.Text
                  | SLogTail T.Text Int
                  | SWhoAmI
                  | SGetRunlevel -- yet to implement
                  | SEnterRunlevel T.Text -- yet to implement
                  | SGetBatteryCapacity -- yet to implement
                  -- | SSchedule
                  | SGetMemoryStats -- yet to implement
                  | SBackgroundSpawn T.Text [T.Text] -- yet to implement
                  | SSync -- yet to implement
                  | SGetRoots -- yet to implement

data SmileResponse a = SSuccess a | SFailed SmileError
Older versions Editor Timestamp
SMILE m@doomanddarkness.eu 2016-10-21 22:34:29 UTC
SMILE m@doomanddarkness.eu 2016-10-21 22:34:25 UTC
SMILE m@doomanddarkness.eu 2016-10-21 22:32:42 UTC
SMILE m@doomanddarkness.eu 2016-10-21 22:31:34 UTC