erlang自定义二进制协议
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

24 行
405 B

%% 测试协议 注释可以用 % 也可以用 //
test {
string aa;
}
// phoneNumber info
phoneNumber{
test number; //电话号码
int32 type; //类型
}
%% person info
person{
string name; %% 名字
int32 id; %% id
string email; //邮箱
list[phoneNumber] phone; // list of phoneNumber
}
%% addressBook info
addressBook {
list[person] person;
list[person] other;
}