bus experiments
This commit is contained in:
parent
25979492cc
commit
695b45d9c0
|
@ -1 +1,2 @@
|
|||
2 3 + . bye
|
||||
1 2 3 ROT +
|
||||
. bye
|
|
@ -0,0 +1,9 @@
|
|||
-module(fserve).
|
||||
-export([start/0]).
|
||||
-include("./msg.hrl").
|
||||
|
||||
start () ->
|
||||
file_serve(#{}, #{}).
|
||||
|
||||
file_serve(Names, DataStore) ->
|
||||
throw (not_implemented).
|
|
@ -0,0 +1,16 @@
|
|||
%% This is the standard set of file server messages.
|
||||
|
||||
% upload sends data to be uploaded.
|
||||
-record(upload, {client, data}).
|
||||
|
||||
% tag marks an ID as having an alternate name.
|
||||
-record(tag, {client, id, name}).
|
||||
|
||||
% put combines upload and tag.
|
||||
-record(put, {client, name, data}).
|
||||
|
||||
% retrieve obtains the data referenced by id.
|
||||
-record(retrieve, {client, id}).
|
||||
|
||||
% fetch obtains the data referenced by an alternative name.
|
||||
-record(fetch, {client, name}).
|
Loading…
Reference in New Issue