mirror of
https://github.com/ubf/ubf.git
synced 2026-04-19 03:05:42 +00:00
32 lines
521 B
Plaintext
32 lines
521 B
Plaintext
+NAME("file_server").
|
|
|
|
+VSN("ubf1.0").
|
|
|
|
+TYPES
|
|
|
|
info() = info;
|
|
description() = description;
|
|
services() = services;
|
|
contract() = contract;
|
|
|
|
file() = string();
|
|
ls() = ls;
|
|
files() = {files, [file()]};
|
|
getFile() = {get, file()};
|
|
noSuchFile() = noSuchFile.
|
|
|
|
|
|
+STATE start
|
|
ls() => files() & start;
|
|
getFile() => binary() & start
|
|
| noSuchFile() & stop.
|
|
|
|
|
|
+ANYSTATE
|
|
info() => string();
|
|
description() => string();
|
|
contract() => term().
|
|
|
|
|
|
|