17 lines
446 B
Erlang
17 lines
446 B
Erlang
|
%% 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}).
|