1
0
mirror of https://github.com/ubf/ubf.git synced 2026-04-17 10:16:06 +00:00
Files
ubf/server.con.old
Joseph Wayne Norton 580fb80dd6 import ubf-1.10.tgz
2009-04-11 23:52:23 +09:00

58 lines
1.2 KiB
Plaintext

+NAME("metaserver").
+INFO("I am a meta server
See http://www.sics.se/~joe/ubf.html
This server speaks Universal Binary Format 1.0
For more information type 'description'$ at the dollar prompt
Remember the $ and quote marks :-)
").
+DESCRIPTION("
UBF is a universal binary format for describing binary data
It is described at http://www.sics.se/~joe/ubf.html
This server understands the following commands:
'info'$
Return sort information about the service
'description'$
Return a description
'state'$
Return the state of the interface
'expect'$
Return the type of the next item that the server is expecting
{'rpc', Q}$
Perform a remote procedue call on the server
{'event',E}$
Send an event to the server
{'pushProtocol', Name, Args}$
Push a new protocol onto the protocol stack
Warning without reading the documentation you might find the output from
some of these commands difficult to understand :-)
").
+VSN("ubf1.0").
+STATE start
info => string() & start
; services => [string()] & start
; contract => term() & start
; {startService, string(), term()} => {ok, term()} & start
| {error, badName} & start
; stop => void() & stop.