erlang自定义二进制协议
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
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;
}