bus experiments

This commit is contained in:
Kyle Isom 2019-04-24 22:46:05 +00:00
parent 25979492cc
commit 695b45d9c0
3 changed files with 27 additions and 1 deletions

View File

@ -1 +1,2 @@
2 3 + . bye
1 2 3 ROT +
. bye

9
pe/filesrv/fserve.erl Normal file
View File

@ -0,0 +1,9 @@
-module(fserve).
-export([start/0]).
-include("./msg.hrl").
start () ->
file_serve(#{}, #{}).
file_serve(Names, DataStore) ->
throw (not_implemented).

16
pe/filesrv/msg.hrl Normal file
View File

@ -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}).