chunk() = chunk_bin() | {chunk_csum(), chunk_bin()}
chunk_bin() = binary() | iolist()
client can use either
chunk_csum() = binary()
1 byte tag, N-1 bytes checksum
chunk_pos() = {file_offset(), chunk_size(), file_name_s()}
chunk_s() = binary()
server always uses binary()
chunk_size() = non_neg_integer()
chunk_summary() = {file_offset(), chunk_size(), binary()}
epoch_csum() = binary()
epoch_id() = {epoch_num(), epoch_csum()}
epoch_num() = -1 | non_neg_integer()
error_general() = bad_arg | wedged | bad_checksum
file_info() = {file_size(), file_name_s()}
file_name() = binary() | list()
file_name_s() = binary()
server reply
file_offset() = non_neg_integer()
file_prefix() = binary() | list()
file_size() = non_neg_integer()
inet_host() = inet:ip_address() | inet:hostname()
inet_port() = inet:port_number()
projection() = #projection_v1{}
projection_type() = public | private
Generated by EDoc, Jun 25 2015, 16:39:10.