1
0
mirror of https://github.com/ubf/ubf.git synced 2026-04-19 03:05:42 +00:00
Files
ubf/file_plugin.con
Joseph Wayne Norton 3d1086071e import ubf-1.11.tgz
2009-04-11 23:55:00 +09:00

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().